quasar: Modal cannot be closed
Software version
Quasar: 0.14.4 OS: Windows 7 Node: 4.2.4 NPM: 2.14.12 Browsers: Chrome 61.0.3163.91 64 Bit iOS: Android: Any other software related to your bug:
What did you get as the error?
There is an un-handled case where modal cannot be closed
What were you expecting?
Modal should be closed when one of the configured events are triggered
What steps did you take, to get the error?
This can be replicated in the quasar play app. http://quasar-framework.org/quasar-play/android/index.html#/showcase/popups/modal
Steps:
- Open a modal
- Refresh the page
- Open a modal again
The modal opened in step 3 cannot be closed.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 17 (2 by maintainers)
Fixed in future v0.15 already. Closing this. Please be patient. Sorry for the inconvenience.
Just ran into this myself, found the same workaround except it was the
active
property that needed deferred changing. Not sure if it’s related however I saw this issue when emitting an event from within a custom component contained within the q-modal, the listener hook in the parent is doing the dialog toggling. Here is my workaround in the parent emit listener (just different prop than above)I can reproduce something similar in production(Quasar: 0.14.4). Here is my work to fix this.
@igorgo Same issue here
Interesting that, for me at least, refreshing the page (on Chrome, haven’t tested ff) does not help. In other words, for me in the dev environment the following steps could be added:
I would also note that clicking the mysterious forward nav button after closing the modal has the same effect as refreshing the page (i.e. subsequent modals can’t be closed).
It seems I’ve managed to reproduce bug in browser (chrome & ff).
After that modal becomes not closable.