Long select history problem after dialog close

Long select history problem after dialog close

Hi all,

The problem I ran into can be demonstrated with the default demo for selects page:
http://jquerymobile.com/demos/1.0a3/#docs/forms/forms-selects.html

the second demo is of a select with many options, so that the options list is opened in a dialog (nice feature, btw). The problem is that after choosing an option the dialog closes (as it should), but not cleanly, so that pressing back goes to an empty page instead of to whatever was the previous page.

I think that the problem lies in the ui-state=dialog url param not being removed, and the dialog being remembered in the history, the url line after choosing an option looks like this-
http://jquerymobile.com/demos/1.0a3/#docs/forms/forms-selects.html&ui-state=dialog

pressing back then removes the ui-state param, but shows an empty page.

I found this behavior with both FF and the native android browser.

Am I doing something wrong here?