-
-
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
v-model variable reference #251
Comments
@helloJosh try "person['name']" instead of person['person'] and it'll work. |
@marfalkov Thanks for looking into this. I miss typed the variable name. I fixed it here: http://jsfiddle.net/hellojosh/L43Vc/ If you edit the first textbox the values change, but if you edit the second textbox, the values do not change. |
@helloJosh Ahh I see. I think it's here: https://github.com/yyx990803/vue/blob/master/src/compiler.js#L729 |
I was working with form elements and came across a potential bug. It deals with points to objects in the v-model attribute. If you point to the variable like 'person.name' it works but if you try and point to it like 'person['name']' it doesn't work.
Here is an example:
http://jsfiddle.net/hellojosh/L43Vc/
The text was updated successfully, but these errors were encountered: