When displaying a modal on mobile, have the 'back' button close the modal instead of actually going back a page

Kevin

Well-known member
The title says it all :D ... When displaying a modal on mobile, have the 'back' button close the modal instead of actually going back a page.

Besides the XF modal, the same for the lightbox when viewing an image, instead of going back a page just close the lightbox when the mobile device 'back' button is hit.
 
Upvote 9

briansol

Well-known member
I just came to post this.

Just happened to me again and I got annoyed enough to come here on a Sunday lol


Trap the native back button and prevent default action and instead close the attachment browser modal.
 
Top