Application freezes when closing modal window and opening popup immediately after



We are experiencing this problem when the result of closing a modal window needs to show a popup to the user, because of an error or information message.

We think there is something that is blocking the user events so they cant be handled by the controllers.

The error is reproduced in following codepen:

Clicking ‘modal’ button will show the modal. Clicking ‘Close & Popup’ will close the modal, the ‘modal.hidden’ event triggers an event to the ‘AppCtrl’ with finally show the popup. Once the popup is dismissed ‘modal’ button does not work anymore.

We have already tried handling ‘modal.hidden’ in ‘AppCtrl’ and showing the modal inside a service with the same result

Any help will be welcomed
Thanks in advance