Quasar: modal cannot be turned off immediately

Created on 23 Aug 2017  路  2Comments  路  Source: quasarframework/quasar

Software version

Quasar: 0.14.1 0.13.10
OS: Windows 10
Node: 8.1.2
NPM:
Browsers: Chrome
iOS:
Android:
Any other software related to your bug:

What did you get as the error?

I'am running close method, but the modal box often cannot be turned off immediately.

What were you expecting?

What steps did you take, to get the error?

Most helpful comment

If this bothers you when in development mode (like it did for me), you can quickfix with theses lines (For Desktop/Browser use where there's, in much case, no point in using history to dismiss a modal):

// Fix modal/dialog not closing
import { Platform } from 'quasar-framework'
Platform.has.popstate = false;

All 2 comments

This has chances of occurring only when in development mode where the hot reload is messing with the modal state. Cannot happen on a production build.

If this bothers you when in development mode (like it did for me), you can quickfix with theses lines (For Desktop/Browser use where there's, in much case, no point in using history to dismiss a modal):

// Fix modal/dialog not closing
import { Platform } from 'quasar-framework'
Platform.has.popstate = false;
Was this page helpful?
0 / 5 - 0 ratings