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
classes added on directives get overridden when Vue renders because Vue cannot be aware of them. You should avoid it
Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂
Version
2.6.10
Reproduction link
https://jsfiddle.net/po0jg4us/
Steps to reproduce
1、注册全局指令
v-class
2、注册全局组件
demo-comp
3、实例化 Vue,使用字符串模板
4、最终结果:
What is expected?
期望 div 上有
app
和comp
两个样式类What is actually happening?
结果只有
app
一个样式类The text was updated successfully, but these errors were encountered: