Open
Description
Describe the bug
When using "#each" block and then re-order the items of the array, if we have a "dialog" element open as modal inside a row, and if the items goes to a lower index, the "::backdrop" psudo element get lost. Notice that "::backdrop" psudo element is not get lost if the new index is higher.
I tried it with Svelte 5 and I noticed that it happens the other way round. (the index lower and higher)
Reproduction
I made a Repl to demonstrate the issue:
Issue on Svelte 4 and 3:
https://svelte.dev/repl/0f7b410a6c9c413f82c8bb9e14a66824?version=4.2.19
Logs
No response
System Info
Safari 17.1 / Chrome 123
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels