-
Notifications
You must be signed in to change notification settings - Fork 663
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
Expose current modal #178
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to be able to access the current modal without having to track the modal states independently of the state tracking within the plugin.
This should be fairly easy to expose by adding a "getCurrent" method to $.modal which is a direct reference to the current "getCurrent" function.
Or, if you would rather not expose the modal instance itself you could add a "getCurrent" method to $.modal which wraps the current "getCurrent" function and return the modal instance's $elem only.
However this seems awkward as access to the $blocker and options would probably be useful as well. Also, this same result could currently be achieved with:
But that would get inefficient (relatively) if I needed to work through multiple, stacked modals.
The text was updated successfully, but these errors were encountered: