Skip to content

Binding broken after using move patch #158

@Mamuuut

Description

@Mamuuut

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions