aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-11-21 08:33:43 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-21 19:14:04 -0500
commitf13b5dfa7fdb480b818cfbf07e35088460e7b5c9 (patch)
tree9b3f8ec59bf11c3c254684bcace703fac3f117c0 /ui/jquery.ui.button.js
parentc348f2890c3b44d81b54ae9a069152943a2da7e7 (diff)
downloadjquery-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.js2
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" );
});