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

Apply await to onAnyCloseEventFinished not working #354

Open
JasmineLaiHua opened this issue Jul 18, 2022 · 0 comments
Open

Apply await to onAnyCloseEventFinished not working #354

JasmineLaiHua opened this issue Jul 18, 2022 · 0 comments

Comments

@JasmineLaiHua
Copy link

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
Apply await to event onAnyCloseEventFinished.toPromise() not working. The event did not fire after the modal closed.

Expected behavior
onAnyCloseEventFinished can work with async/await when transform to a promise ( .toPromise() )

What is the motivation / use case for changing the behavior?
I would like to pause other processes when open the modal and get the user input after the modal is closed

  • Smart Modal version: 7.1.1

  • Angular version: 11

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