joystick icon indicating copy to clipboard operation
joystick copied to clipboard

Fix re-render of same element in list taking on value of previous element in position

Open rglover opened this issue 2 years ago • 0 comments

In a list, if there are two list items with the same element (e.g., 1, 2, 3 each with a select dropdown), if item 1 is removed, elements in item 2 will retain the values of item 1.

This is because Joystick's DOM engine doesn't see a unique element, but rather, the same HTML element. The fix is to somehow uniquely identify elements in a list/loop/each so that when we re-render, the correct attributes are updated.

rglover avatar Oct 13 '23 22:10 rglover