Skip to content
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

Unable to watch nested data #3979

Closed
allistera opened this issue Oct 18, 2016 · 3 comments
Closed

Unable to watch nested data #3979

allistera opened this issue Oct 18, 2016 · 3 comments
Assignees
Labels

Comments

@allistera
Copy link

Vue.js version

2.0.2

Reproduction Link

http://jsfiddle.net/2vqkLkjL/1/

Steps to reproduce

  • Create a component with a nested data property: Object, of an object containing an array.
  • Set up watcher for this property, specifying the deep flag.

What is Expected?

When the value of an array changes, the watcher runs

What is actually happening?

Watcher isn't getting triggered.

The code seemed to work fine in Vue 1.x.

Not 100% nested objects/arrays is the correct way for managing a view with lots of inputs.

@defcc defcc added the 2.0 label Oct 18, 2016
@defcc
Copy link
Member

defcc commented Oct 18, 2016

the same problem with #3958 I am resolving this problem

@allistera You could use object as a workaround now. jsfiddler here

@defcc defcc added the bug label Oct 18, 2016
@defcc defcc self-assigned this Oct 18, 2016
@allistera
Copy link
Author

Ah I should have done a better job searching. Thanks deffc awesome work!

@LinusBorg
Copy link
Member

closing as it duplicates #3958

yyx990803 pushed a commit that referenced this issue Oct 22, 2016
* fix v-model with array binding

* add mutli selects test case

* add test case. v-bind with array

* add comments

* code refactor
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