mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Button: add explanatory comment for when we bind to blur
This commit is contained in:
parent
70e013830d
commit
509259a66e
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -193,6 +193,8 @@ $.widget( "ui.button", {
|
|||||||
$( this ).addClass( "ui-state-active" );
|
$( 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() {
|
.bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
|
||||||
$( this ).removeClass( "ui-state-active" );
|
$( this ).removeClass( "ui-state-active" );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user