I have a button (with the Button plugin) that opens a dialog. The problem is that ui-state-focus won't go away on that button. I set up a simple example at --> http://crowded.se/test/e.php I'm not sure if it's anything I'm doing wrong or if it's a bug.
Found a similar behaviour when disabling buttons. Made another test you can see at --> http://crowded.se/test/f.php I'm not sure if I'm using it wrong or what, but here both ui-state-focus and ui-state-hover will be "locked" in the disabled button.
Have any of the fixes worked for people? I've tried .blur(), .removeClass('...'), .focus() on another element but none work. It seems the styling is added after the .click() event on the buttons therefore undoing any function carried out to remove it.