svelte-accessible-dialog
svelte-accessible-dialog copied to clipboard
`document.body.style.top` doesn't return to the correct place when the modal is open/closed.
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 👋🏻
+1 I have the same issue, page scrolls to top when modal is closed.