-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Key warning shouldn't be shown for transition keys #6126
Comments
A boolean is not a string or a number, so technically, you are not doing what the warning asks you to do. ;) Still, we should look into it and see that boo leans are fine too. |
FYI, you can turn the boolean into a number by prepending <div :key="+isEditing"> I guess adding it to the warning is enough but we could also make |
13 tasks
posva
added a commit
to posva/vue
that referenced
this issue
Jul 17, 2017
yyx990803
pushed a commit
that referenced
this issue
Jul 19, 2017
suppresses key warning for boolean values, closes #6126
yyx990803
pushed a commit
that referenced
this issue
Jul 19, 2017
suppresses key warning for boolean values, closes #6126
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.4.1
Reproduction link
https://jsfiddle.net/f3Lo2k0p/
Steps to reproduce
What is expected?
To not get a warning
What is actually happening?
Vue issues a warning:
"Avoid using non-primitive value as key, use string/number value instead."
However the key here is bound to a boolean property.
The text was updated successfully, but these errors were encountered: