We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5ba053 commit 02c821dCopy full SHA for 02c821d
ui/jquery.ui.popup.js
@@ -45,13 +45,13 @@ $.widget( "ui.popup", {
45
.attr( "aria-owns", this.element.attr( "id" ) );
46
47
this.element
48
- .addClass( "ui-popup" )
+ .addClass( "ui-popup" );
49
this.close();
50
51
this._bind(this.options.trigger, {
52
keydown: function( event ) {
53
// prevent space-to-open to scroll the page, only happens for anchor ui.button
54
- if ( this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) {
+ if ( $.ui.button && this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) {
55
event.preventDefault();
56
}
57
// TODO handle SPACE to open popup? only when not handled by ui.button
0 commit comments