-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feature: add onAfterClose config option #1005
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like onAfterClose will be called before onClose if animation is supported and enabled.
Would you mind cleaning up our code a bit and changing the onComplete
argument to onClose
to reflect what it actually is? This will make it clearer.
@zenflow Yeah i see your point. Have a look at my latest commit. onClose has been moved further up in the function and made sync so it will always run before the actual disposal of the modal happens. onAfterClose will now run async after the modal has been disposed. I updated the tests to reflect this. It might be a problem that onClose runs differently now, if someone is dependent on the old behaviour. |
@zenflow travis-ci gives a weird error? Relevant tests seems to succeed though |
Released in v7.17.0 🎉 |
As described here #1004