New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active state gets removed from persistent navbar after page transition #7583

Closed
intermedi8 opened this Issue Jul 23, 2014 · 3 comments

Comments

Projects
None yet
5 participants
@intermedi8

intermedi8 commented Jul 23, 2014

In JQM 1.4.3 its not possible to set the active state of an persistent navbar.
The ui-btn-active class automatically gets removed after the show-event. Due to this, theres only an ugly workaround by using a setTimeout function, re-adding the class with some delay.

This bug can also be seen in the official demo:
http://demos.jquerymobile.com/1.4.3/toolbar-fixed-persistent/

@cgack

This comment has been minimized.

Show comment
Hide comment
@cgack

cgack Jul 24, 2014

Contributor

The demo for this is being updated with #7578. The solution here should not require a setTimeout, but rather a change from binding to pagecontainershow moving to pagecontainerchange should address this issue. I have created an example here: http://jsbin.com/huvoraba/62/edit

Contributor

cgack commented Jul 24, 2014

The demo for this is being updated with #7578. The solution here should not require a setTimeout, but rather a change from binding to pagecontainershow moving to pagecontainerchange should address this issue. I have created an example here: http://jsbin.com/huvoraba/62/edit

@sachinkt

This comment has been minimized.

Show comment
Hide comment
@sachinkt

sachinkt Jul 29, 2014

Thanks @cgack !!

Just checked on Chrome Version 36.0.1985.125 following:

  1. Click on Friends tab it is highlighted(shown active)
  2. Click on info tab - It is not shown highlighted (not shown active)

Now If I click on any tab it is not shown highlighted. Please check.

sachinkt commented Jul 29, 2014

Thanks @cgack !!

Just checked on Chrome Version 36.0.1985.125 following:

  1. Click on Friends tab it is highlighted(shown active)
  2. Click on info tab - It is not shown highlighted (not shown active)

Now If I click on any tab it is not shown highlighted. Please check.

@apsdehal

This comment has been minimized.

Show comment
Hide comment
@apsdehal

apsdehal Jun 22, 2016

Member

Fixed in 1.5.

Member

apsdehal commented Jun 22, 2016

Fixed in 1.5.

@apsdehal apsdehal closed this Jun 22, 2016

@apsdehal apsdehal self-assigned this Aug 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment