Closed simonfox closed 5 years ago
@3cp I've just updated this with a change in _itemsMutated to ensure that reordering of the source array outside of the repeater is catered for. I've updated the repro to add a reorder button for testing this.
Thx! But this is weird, I need to invest more, it's probably I misunderstood the original repeat logic. Also there is one part in reorderable-repeat is not automatically handled by binding, the add/rmClass which touches all views.
@3cp I think essentially if we move the view while reordering, this path is followed and thus repeat.updateBindings
doesn't get called here.
My second change alone actually solves the initial problem, however skipping moveViews
while dragging makes the drag much smoother.
issue fixed via #13
Replaced by #13
When repeating over an array of objects, and using a view that triggers in place modification of that array (
viewsRequireLifecycle
), moving the views before the drag operation is completed gets the slot views out of sync with the item order.closes #11