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

navbar link stays active when using changePage() #1181

Closed
dirkpennings opened this issue Mar 3, 2011 · 5 comments
Closed

navbar link stays active when using changePage() #1181

dirkpennings opened this issue Mar 3, 2011 · 5 comments

Comments

@dirkpennings
Copy link

When using $.mobile.changePage() to navigate to your second internal linked page and going back through the back button, you see the clicked navbar link still has the class "ui-btn-active".

This unlike the normal internal linking functionality..

examples (click the "Bar" menu option):

normal, working: http://jsfiddle.net/dirkpennings/kt7VQ/

changePage, not working: http://jsfiddle.net/dirkpennings/EPUqj/

@toddparker
Copy link
Contributor

Updated the changePage example with latest:
http://jsfiddle.net/EPUqj/4/

@ghost ghost assigned johnbender Sep 22, 2011
@toddparker
Copy link
Contributor

@dirkpennings - Is this still an issue with 1.0.1?
Also please test on master (1.1-pre): www.jquerymobile.com/test

@jefftougas
Copy link

Still seems to be an issue.. Example with nightly build: http://jsfiddle.net/YkhQH/2/

@ghost ghost assigned jasondscott Jun 8, 2012
jasondscott pushed a commit to jasondscott/jquery-mobile that referenced this issue Jun 21, 2012
…gePage()

Clears the active button class on the pressed navbar button after a
pagechange.
@polarfish
Copy link

Excuse me, I may not completely understand the process of releasing fixes, but when the fix of this bug will be released? In version 1.3.0? It's opened 2 years ago and still has "No milestone" label.

jaspermdegroot added a commit that referenced this issue Feb 4, 2013
Fixes: #1181 - navbar link stays active when using changePage()
@jaspermdegroot
Copy link
Contributor

Closing as fixed by 64143ae

jaspermdegroot added a commit that referenced this issue Apr 1, 2013
Removed workaround for #1181. Fixed that issue by addressing the actual cause: event.target returns ui-btn-inner instead of the anchor
jaspermdegroot added a commit that referenced this issue Apr 1, 2013
Removed workaround for #1181. Fixed that issue by addressing the actual cause: event.target returns ui-btn-inner instead of the anchor
jaspermdegroot added a commit that referenced this issue Apr 1, 2013
This fixes a regression from the fix for #5707. That issue was a regression from the fix for #1181. I added the workaround for #1181 again but changed the event to avoid the regression.
jaspermdegroot added a commit that referenced this issue Apr 1, 2013
This fixes a regression from the fix for #5707. That issue was a regression from the fix for #1181. I added the workaround for #1181 again but changed the event to avoid the regression.
@jaspermdegroot jaspermdegroot mentioned this issue May 13, 2014
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.