-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
Transition class bind null values has DOMException in addClass function. #4050
Comments
Actually I can't reproduce this. Can you provide a fiddle? |
Thanks. IMHO the |
This commit adds a check for falsy names (null or empty string) before attempting to add or remove them, to prevent a DOM exception. A warning will also be triggered if in development env.
What do you mean by "cancel"? Are you trying to interrupt an ongoing animation and make it snap to the end state, or to "turn off" the transition so that it doesn't trigger anymore? In either case, setting the bound class to As for "turning off", we could probably add a |
For my case, It is turn off the transition effect,But at some point, Instead of remove the entire effect use 'v-if', May I just remove one of enter or leave effect? @yyx990803 |
Vue.js version
2.0.1
When 'animateIn' bind value is empty string or null,addClass function has exception:
Semantically,Binding a null value is intended to remove the transition effect.
Should a null check be made in addClass function or the transition should be ignored in the case of null values?
The text was updated successfully, but these errors were encountered: