diff options
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index b80fca4d9..d6eed67dc 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -193,6 +193,8 @@ $.widget( "ui.button", { $( this ).addClass( "ui-state-active" ); } }) + // see #8559, we bind to blur here in case the button element loses + // focus between keydown and keyup, it would be left in an "active" state .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() { $( this ).removeClass( "ui-state-active" ); }); |