Closed isaacfink closed 2 years ago
I am an idiot, turns out it's the way svelte updates the dom, adding a key to the each block solved this
@isaacfink oh it's caught me out a few times too!
@isaacfink could you share your finished product please?
@isaacfink could you share your finished product please?
It's on an admin page for a website, I can share how it works and some screesnshots/screen recordings, but I can't share the project
I have the following code
problem is when I remove the item the select stays filled in with the previous values, for example if I have 3 items with 3 select elements, and I remove the second one, the third one (which should now be the second one) stys with the values of the previous second one which is now deleted