Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Back button breaks after opening a select box #1007

Closed
Rowno opened this issue Feb 7, 2011 · 7 comments
Closed

Back button breaks after opening a select box #1007

Rowno opened this issue Feb 7, 2011 · 7 comments

Comments

@Rowno
Copy link

Rowno commented Feb 7, 2011

After a select box is opened, the back button contains extra history steps which either causes a blank page to be displayed or nothing to happen at all. Pressing the back button again will cause the previous page to be displayed as normal.

@toddparker
Copy link
Contributor

Steps to reproduce: open a full page custom select (your state):
http://jquerymobile.com/test/docs/forms/forms-all.html

Instead of selecting an option, hit the "x" button to return to the form. If you then hit the Back button, the form page does a reverse pop transition and falls away, leaving you looking at a blank page.

@mojoaxel
Copy link
Contributor

I can reproduce this on a HTC Desire with Android.

@Rowno
Copy link
Author

Rowno commented Mar 11, 2011

It's still quite broken for me, sometimes the html back button works, but browser back button always results in a blank page for me.

@normalex
Copy link

This problem also affects modal dialogs broken browser history with extra "#&ui-state=dialog". If you make several local nested dialog windows then it's even worse "#&ui-state=dialog&ui-state=dialog&ui-state=dialog..." and so on.

@scottjehl
Copy link

fixed bug where clicking back twice after opening a dialog select was causing the main page to hide. history.back was being called twice in some cases when clicking the custom close button. Closed by 4e13021

@normalex
Copy link

Hi Scot, I just downloaded the most recent git version and would say that this issue solved for the first click only. To reproduce:
http://jquerytest.localhost/#docs/forms/forms-selects.html
click on the State Select box (next from the shipping method).

  1. select a state,
  2. click again and select a different state.
  3. when you are trying to select a state for the third time, click on X. It will react-close only to the second click.

fcheslack pushed a commit to fcheslack/jquery-mobile that referenced this issue Jul 28, 2011
… causing the main page to hide. history.back was being called twice in some cases when clicking the custom close button. Fixes jquery-archive#1007
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants