Skip to content

Variable in component outer element class deactivate the outside v-class #1065

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

Closed
noirbizarre opened this issue Jul 21, 2015 · 4 comments
Closed
Labels

Comments

@noirbizarre
Copy link

Hi!

I just noticed that it's possible to call a component et use v-class from outside and it will be properly merged with existing class but when you introduce a variable into the component class attribute, the outside v-class is ignored

Here's a fiddle illustrating the bug: http://jsfiddle.net/noirbizarre/xcres8hr/3/

@yyx990803 yyx990803 added the bug label Jul 21, 2015
@benjaminreid
Copy link

I'm not sure if this is related, but when I set up some props for a component and some data the default values for props don't work. Unless I'm understanding it incorrectly.

http://jsfiddle.net/gthk4jm6/2/

@yyx990803
Copy link
Member

@nouveller that is a separate issue, also fixed: https://github.com/yyx990803/vue/issues/1072

@benjaminreid
Copy link

@yyx990803 Ah, brilliant. I've been using a work around for the time being but look forward to the fix in a new release. Thanks!

@noirbizarre
Copy link
Author

@yyx990803 Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants