maximelafarie / ngx-smart-modal

Modal/Dialog component crafted for Angular (Ivy-compatible)
https://maximelafarie.com/ngx-smart-modal/
MIT License
325 stars 85 forks source link

Apply await to onAnyCloseEventFinished not working #354

Open JasmineLaiHua opened 2 years ago

JasmineLaiHua commented 2 years ago

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