-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow using the modal exclusively within an element other than the HTML body #32
Comments
Is there a way to open a nested modal? Right now, when I open a second, nested modal from an modal, the parent modal disappears. Ideally, the second modal should be rendered on top of the original one, showing both. |
@josdejong there is not. This ticket is also more aimed at a way to bin the modal to a DOM element other than body rather then true nested in the sense that one modal is superimposing another modal. |
Ok I've created a separate issue: #89. Would be very useful, at least to me :) |
Currently, svelte-simple-modal assume that it's used globally. I.e., it overlays the
body
element. However, sometimes it can be useful to just use it within another (scrollable) container.To support this we could traverse the DOM tree and find the first parent that is scrollable using for instance:
The text was updated successfully, but these errors were encountered: