We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 803eaf2 commit 737b690Copy full SHA for 737b690
ui/selectmenu.js
@@ -90,7 +90,7 @@ return $.widget( "ui.selectmenu", {
90
);
91
92
// Associate existing label with the new button
93
- this.labels = this.element.labels();
+ this.labels = this.element.labels().attr( "for", this.ids.button );
94
this._on( this.labels, {
95
click: function( event ) {
96
this.button.focus();
@@ -423,7 +423,8 @@ return $.widget( "ui.selectmenu", {
423
return;
424
}
425
426
- if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + this.ids.button ).length ) {
+ if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" +
427
+ $.ui.escapeSelector( this.ids.button ) ).length ) {
428
this.close( event );
429
430
0 commit comments