-
Notifications
You must be signed in to change notification settings - Fork 13
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
Missing action hooks. #23
Comments
Wouldn't it be just as easy to perform whatever logic you would put there, inside the action you're using to open the modal? What would be the difference?
Would be the same as:
wouldn't it? |
Yeah, that solution works when you’re opening the modal programmatically, but the case I’m facing is opening the modal using the |
That's a good point. I'm inclined to lean toward saying "that use-case calls for programmatically opening a modal", because I had envisioned the If anyone else has input, please chime in! |
Also, I'm assuming if we did this we would also add hooks for |
Agree! We will also need to add those. |
There are certain situations where we have to perform some logic before opening the modal. An action hook like
beforeOpen
would be really handy to put this kind of logic; additionally, we could prevent the opening of the modal in this hook if for example we have a validation there.The text was updated successfully, but these errors were encountered: