svelte-accessible-dialog icon indicating copy to clipboard operation
svelte-accessible-dialog copied to clipboard

`document.body.style.top` doesn't return to the correct place when the modal is open/closed.

Open inspiredlabs opened this issue 1 year ago • 1 comments

Hey Reece, thanks for making [svelte-accessible-dialog](https://github.com/reecelucas/svelte-accessible-dialog) available – I can see there's a lot of testing gone into it – the focus-trap is great for example!

document.body.style.top doesn't return to the correct place when the modal is open/closed.

Fix:

I've made a quick-and-dirty fix here so you can in the green box where the document.body.style.top should reappear.

Is there something in LockScroll.svelte that could be done?

I didn't want to break anything in the process and thought a proof-of-concept would help in deciding what you'd like to do.

Cheers 👋🏻

inspiredlabs avatar Mar 27 '23 16:03 inspiredlabs

+1 I have the same issue, page scrolls to top when modal is closed.

khromov avatar Nov 03 '23 19:11 khromov