Multiple dynamic Sheets/Popups backdrops


(This Sheets are in other Components)

If I close sheet before change content everything works

But the problem is if I change content with opened Sheet(actions in sheet) after when click on app a have this error:

Uncaught TypeError: Cannot read property ‘closeByBackdropClick’ of undefined

i tried to see the instance of Sheet onMount/onDestroy events
after change with Sheet opened

Would be good to see minimal live example. But I guess what happens, is because you change Popup’s content BEFORE sheets, it destroys and recreates the Sheets. In Svelte you need to “key” your Sheet components with unique {#key} expressions to tell Svelte not to destroy them