New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean attributes #2169
Comments
What's the problem with |
Well, |
Ok, I guess the modifier is the best way to go. Should be easy too. PR welcome :) |
What about the modifier name? is |
Yeah I think so. |
By the way, could you email me your email address? it would be more convenient talk in my native language. XD |
+1 😺 |
@rhyzx Thank you for posting your issues in English! 😄 |
@posva wel ;) |
According to the HTML5 spec:
So, in order to make my code spec compatible, i'd do in this way in vue:
<input :checked="checked ? '' : false">
, do you think it is necessary to directly support boolean attributes in vue? @yyx990803Solutions I can think of are these:
v-add:selected="true"
(not recommand)v-bind:selected.boolean="true"
(recommand)v-bind:selected="true"
, we need to mantain a boolean attribute list(see), and this may have compatibility problems.Again, if you think it is necessary, let me handle this!
The text was updated successfully, but these errors were encountered: