Skip to content

v-attr only takes one attribute when used with globals #626

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
ayamflow opened this issue Dec 8, 2014 · 1 comment
Closed

v-attr only takes one attribute when used with globals #626

ayamflow opened this issue Dec 8, 2014 · 1 comment

Comments

@ayamflow
Copy link

ayamflow commented Dec 8, 2014

I made a fiddle here. Not a big issue, since the bottom solution works, but wanted to give you a hint ;)

Open the console or inspect the DOM to see that the first input render only the min attribute, while the second input correctly renders min and max.

@yyx990803
Copy link
Member

Interesting... actually, Math is the only global symbol that I explicitly allowed in the expression parser, but when the expression is a simple keypath, Vue uses a faster keypath parser, which treats Math as a path segment. I've added a check for this special case in 3ea564b.

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

No branches or pull requests

2 participants