DEV Community

loading...

Discussion on: Intercepting back button on mobile in Vue/Nuxt/Vuetify apps

Collapse
lilianaziolek profile image
Lili Z Author

Interesting idea. Maybe you can show a full working example of how this would work, particularly the second suggestion (change history)?
I don't like the idea of creating two completely different flows between mobile (new page) and desktop (dialog) as it would quickly make the code unnecessarily complex.

Collapse
ehutch79 profile image
Eric Hutchinson

Why not just make it obvious that they're looking at a modal on mobile? Remove the confusion rather than coding around it.

Collapse
ehutch79 profile image
Eric Hutchinson

I'm not about to write a whole implementation, but here's some good base examples

developer.mozilla.org/en-US/docs/W...