framework7

Open full view…

Back buton problem (0.9.2)

itasia
Sat, 12 Jul 2014 16:27:08 GMT

launch the application home page, go to another page (ajax), click to go to another one (ajax), click the Back button in the Top bar => you go back to the home page, 2 pages before instead of one.

Vladimir Kharlampidi
Sat, 12 Jul 2014 16:41:02 GMT

Can't see such issue

Vladimir Kharlampidi
Sat, 12 Jul 2014 16:44:41 GMT

You can check it at http://www.idangero.us/framework7/kitchen-sink/. There is already new version. Go for example Navbars and Toolbars -> Deep Dynamic Navbar -> Go To Page 2 -> Go To Page 3. And then try to click back button, i see that everything is correct

itasia
Sat, 12 Jul 2014 17:19:52 GMT

You're absolutely right. I don't know why my back buttons all go to the home page.

itasia
Sat, 12 Jul 2014 20:05:42 GMT

Not to the home page. My nav bar back links always go back twice (or go back to 2 pages before)

Vladimir Kharlampidi
Sat, 12 Jul 2014 22:00:06 GMT

It really looks like you initialized app or initialized the same view two times

itasia
Sun, 13 Jul 2014 12:36:51 GMT

I don't understand. I goes into if (clicked.hasClass('back')) only once. Then inside view.goBack only once as well. But next, il will do : app.goBack app.afterGoBack app.goBack app.afterGoBack app.goBack app.goBack I put some alerts in the code to track the process. My app was declared only once....

itasia
Sun, 13 Jul 2014 22:29:51 GMT

Correction. This bug is only with Firefox. As we will use Chrome and Safari on production, we don't care :)