Skip to content

Commit 02c821d

Browse files
committed
Popup: Missing semicolon. Can't use :ui-button selected if button isn't loaded.
1 parent c5ba053 commit 02c821d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.popup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ $.widget( "ui.popup", {
4545
.attr( "aria-owns", this.element.attr( "id" ) );
4646

4747
this.element
48-
.addClass( "ui-popup" )
48+
.addClass( "ui-popup" );
4949
this.close();
5050

5151
this._bind(this.options.trigger, {
5252
keydown: function( event ) {
5353
// 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 ) {
54+
if ( $.ui.button && this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) {
5555
event.preventDefault();
5656
}
5757
// TODO handle SPACE to open popup? only when not handled by ui.button

0 commit comments

Comments
 (0)