-
Notifications
You must be signed in to change notification settings - Fork 75
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
Modifying the list doesn't re-render #35
Comments
Weird, wrapping the v-for in a div works:
|
@archseer I am sorry for late reply. Has your problem been solved? I tried your description and it is OK. |
@hejianxian It wasn't working correctly. Vuejs would lose track of the elements since the placeholder inserting would mess with the DOM. What I did is rewrote the vddl-list component to stop changing the DOM and just store an index, then use a render function. I can provide a PR; might help with #3 |
This is what I have so far: https://gist.github.com/archSeer/8529c45c5b76e564c53eb4f48524f623 |
@archseer Please provide a PR. This DOM-manipulation really destroys the functionality of vddl - this needs to be done in the correct way as you described. |
Wrapping it in a div worked for me as well. But this really should be fixed as part of the package. |
I have this problem after updating to the latest version of the package. |
I have a list like this:
If I modify the array
a.push(2)
, the list doesn't update. I can see the Vue dashboard to properly update and add the componentsbut the actual view stays the same. I think this is because we're modifying the DOM and adding the placeholder component, and vue.js loses track of the elements
The text was updated successfully, but these errors were encountered: