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

Binding broken after using move patch #158

Open
Mamuuut opened this issue Apr 28, 2020 · 0 comments
Open

Binding broken after using move patch #158

Mamuuut opened this issue Apr 28, 2020 · 0 comments
Labels

Comments

@Mamuuut
Copy link

Mamuuut commented Apr 28, 2020

Hi,
I am trying to dispatch some move patches on a list to avoid re-rendering the whole list like when using the DefineList sort method. The idea would be to only rearrange the DOM elements.
It works fine with the move patch except that the binding gets lost at some point.

Here is an example:
https://codepen.io/Mamuuut/pen/JjYJyqr?editors=1111

It only happens when using the setTimout adding new elements just after dispatching the moves works.

Am I doing something wrong? Is there a simple way to rearrange DOM elements without re-rendering everything?

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

2 participants