You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pressing device back button instantly closes app when navigator’s page stack count > 1 and there is toast displayed using ons.notification.toast() #2388
Pressing device back button or ESC instantly closes app when navigator’s page stack count > 1 and there is toast displayed using ons.notification.toast().
Expected: Pop the current page from the navigator's page stack instead of closing the app.
How to reproduce
Open Chrome on desktop.
Go to the Onsen UI Playground and choose the Vanilla JS Kitchensink Example.
Find ons.notification.toast in the HTML editor and remove the timeout property, then click Run.
Open browser JS console.
In the Preview, go to Dialogs and click the "Toast" button.
Press ESC, "Could not close the app..." message appears in console. In a real device when we press device back button, the app closes instantly.