You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would indicate that the view engine trips up on the readonlyattribute without a value and ignore the rest of the line. Explaining why checked=?{...} renders as is. Making the checkbox aways checked.
Changing the spark file to the code below fixes the problem.
The text was updated successfully, but these errors were encountered:
bounav
changed the title
HTML boolean attributes disable whatever is after on that line
HTML boolean attributes disables whatever is after on that line
Feb 2, 2023
HTML allows boolean attributes. For example, the HTML code below renders a ticked checkbox.
In a spark file, the following code always renders the
checked
attribute, regardless of what the conditional output should should evaluate to:Inspecting the HTML show the view renders like this:
This would indicate that the view engine trips up on the
readonly
attribute without a value and ignore the rest of the line. Explaining why checked=?{...} renders as is. Making the checkbox aways checked.Changing the spark file to the code below fixes the problem.
The text was updated successfully, but these errors were encountered: