-
Notifications
You must be signed in to change notification settings - Fork 32
Update Modal.svelte #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fix 'document is not defined' on sveltekit.
Thanks for this PR. How does |
When |
It sounds like |
The diffence of the loading time between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for the explanation and the PR!
* Only call enable/disableScroll once per open/close Svelte will sometimes update the Modal when variables tracked by its parent (e.g. App) and rendered within the content are updated, meaning enableScroll/disableScroll may be called multiple times. This can cause the page to jump back to the top unexpectedly, and can also cause scrolling to remain disabled after closing the modal. * Ensure component renders in Vite + SvelteKit Fixes an issue introduced in #45 Co-authored-by: Fritz Lekschas <code@lekschas.de>
fix 'document is not defined' on sveltekit.