JQuery mobile data-native-menu="false" popup and changePage

394 views Asked by At

So this is kind of a weird issue... I'm using JQuery mobile 1.4 and I am getting some unusual behavior. Here's what I have... On my main page is a selectmenu with the data-native-menu set to false. The selectmenu (which is dynamically set) can sometimes have a lot of elements. When it does, the menu becomes a popup. I have another page that is accessed from a button using

$.mobile.changePage('#lbsPage', {transition:'flip'} );

Here's the strange part. When I go to the lbsPage from the main page, go back, then access the selectmenu (with the popup values), after selecting an option it goes back to the previous page.

Now in case this explanation sucks, here's a link to my site where you can see it for yourself.

Here's what you can do...

Go to Menu -> Import BeerXML -> Back. Then go to The Fermentables -> Select 'Grain' from the Type menu -> Then open and select anything from the Fermentable menu. You'll notice that it goes back to the Import BeerXML page.

What causes this to happen?

1

There are 1 answers

0
whitesoup12 On

So I was able to find the solution to my problem. For some reason that I don't remember, I set the configuration option hashListeningEnabled to false. After removing that option (which defaults to true), my page is reacting as it should.