diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-11-21 08:33:43 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-11-21 19:14:04 -0500 |
commit | f13b5dfa7fdb480b818cfbf07e35088460e7b5c9 (patch) | |
tree | 9b3f8ec59bf11c3c254684bcace703fac3f117c0 /ui/jquery.ui.button.js | |
parent | c348f2890c3b44d81b54ae9a069152943a2da7e7 (diff) | |
download | jquery-ui-f13b5dfa7fdb480b818cfbf07e35088460e7b5c9.tar.gz jquery-ui-f13b5dfa7fdb480b818cfbf07e35088460e7b5c9.zip |
Button: add blur event to buttons. Fixes #8559 - Button: Button doesn't remove active state when using keyboard.
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 508a0424a..3decc2331 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -193,7 +193,7 @@ $.widget( "ui.button", { $( this ).addClass( "ui-state-active" ); } }) - .bind( "keyup" + this.eventNamespace, function() { + .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() { $( this ).removeClass( "ui-state-active" ); }); |