-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Is there any way to listen modal open or close? #50
Comments
You can create a interval of, like 5 milliseconds and check for the ninja.__visible variable |
This was referenced Feb 16, 2024
In case someone needs a way to detect a ninja visible modal:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great library! It makes building cmd tools super easy!
I recently got a situation when I use
ninja-keys
to work with my react project. I use global storage to store the state ofninja-keys
, but I don't know when should I set the state to false and I couldn't find any eventListener to check modal is open ore close.If there is any way to listen modal state will be great!
The text was updated successfully, but these errors were encountered: