#5604 closed bug (duplicate)
Button: ui-state- class names not going away
Reported by: | cwolgast | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.button | Version: | 1.8.1 |
Keywords: | button | Cc: | |
Blocked by: | Blocking: |
Description
When having a button fire a function of various kinds the classes ui-state-focus and ui-state-hover will be "locked" in the button. At least two use case scenarios I've managed to find (that are easily reproducable) can be found at:
http://crowded.se/test/e.php (when opening a dialog) http://crowded.se/test/f.php (when disabling/enabling a button)
Change History (5)
comment:1 Changed 13 years ago by
Summary: | Interaction class names not going away → Button: ui-state- class names not going away |
---|
comment:2 follow-up: 3 Changed 13 years ago by
comment:4 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I have also experienced this issue. After some investigation, I found that the reason for this bug is that the button widget doesn't always get notified about events which might affect its state.
It's possible to fix the 2 examples given by cwolgast using the following 2 solutions:
For the dialog:
Insert the following line of code to the file jquery.ui.dialog.js
For the button:
Insert the following line of code to the file jquery.ui.button.js
(Tested this with jquery 1.8.4 on Firefox 3.6.8 / Linux)