-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
prop did't produce right value #9041
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
Comments
As you declared the prop as type <!-- the following declarations are equivalent -->
<input disabled>
<input disabled="">
<input disabled="whatever"> You can declare the type as |
It doesn't make sense. the order of props type should not affect the result. the props accept String and I assign string, it should be a string. Now it's confusing. |
And this implementation (depending on the order of the Lines 36 to 41 in d483a49
If you feel this is still confusing, welcome to file an issue or make a pull request to our documentation repo: vuejs/vuejs.org. Thanks. |
See #7485 and the linked issues |
Version
2.5.17
Reproduction link
https://jsfiddle.net/yangjunjun/eywraw8t/450799/
Steps to reproduce
see the demo, it's simple
What is expected?
the first prop 'val' should be empty string
What is actually happening?
the first prop 'val' is true
when I create a checkbox-like component which has a props "value" who accept Boolean String type. when an empty string was assign to the "value" but the actual value is "true", it's weird.
The text was updated successfully, but these errors were encountered: