Skip to content
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

Can the Show function return reference of the active modal? #413

Open
ran-wei opened this issue Jan 28, 2021 · 0 comments
Open

Can the Show function return reference of the active modal? #413

ran-wei opened this issue Jan 28, 2021 · 0 comments

Comments

@ran-wei
Copy link

ran-wei commented Jan 28, 2021

One issue I found is when you have a modal open on top of another modal, you can still close the top one, but the one underneath cannot be closed anymore.

Looks like the show function removes event listeners before showing the new one. and I could not get a handle of the Modal instance to add listeners back.

Can we make the show function to return the current active modal, or pass the Modal instance in the onShow callback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant