Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Reset styling of selected button #5641

Closed
petnetti opened this Issue · 3 comments

2 participants

@petnetti

Once a button (in theme-a) is selected it turns blue and it stays blue. I'd like it to just flash blue to indicate it was selected and stay in it's original theme otherwise. It should be configured to reset automatically.
I'm using Ajax to handle the button event.

This works in some browsers and not in others.

TestPage
http://jquerymobile.com/test/docs/buttons/buttons-types.html

Working platforms:
Windows Safari 5.1.7
Windows Chrome 24.0.1312.57 m
Non Working platforms:
Windows Phone 8
Windows Internet Explorer 10
Windows Firefox 18.0.2

Used JQuery versions
jquery-1.8.3.js

jquery.mobile-1.2.0.js
AND
jquery.mobile-1.3.0-rc.1.js

@jaspermdegroot
Collaborator

@petnetti

The only button with theme "a" on that page is the one at the top of the left nav menu. The reason that button keeps the active state after you click on it, is that it links to the same page. Normally clicking a link means navigating away from the page and the framework removes the active button class on pagehide. That event doesn't fire in this case.

You say "it's working" on Windows Safari and Chrome. I see same behaviour on those browsers though. Did I misunderstood the issue?

@petnetti

I’m sorry about that theme but i meant this button that is below ”Input type="button" based button:" text
I added pictures one from IE and one from Safari. Other stays blue and other returns to normal.

ie
safari

I’m using lot of buttons to update current view with Ajax, and it's not good that last pressed button stays blue.
Is there some way around for IE and Firefox to return state to normal after click.
I would appreciate application wide solution.

@jaspermdegroot
Collaborator

@petnetti

Ah ok, you are talking about the focus state, not the active state. This indeed something we have to look into. There is already a ticket for this so I am closing this one as duplicate of #5409.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.