We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e7122 commit f61e065Copy full SHA for f61e065
ui/jquery.ui.selectmenu.js
@@ -62,13 +62,15 @@ $.widget( "ui.selectmenu", {
62
var that = this;
63
64
// Associate existing label with the new button
65
- // this.label = $( "label[for='" + this.ids.element + "']" );
66
- // this._on( this.label, {
67
- // click: function( event ) {
68
- // this.element.focus();
69
- // event.preventDefault();
70
- // }
71
- // });
+ this.label = $( "label[for='" + this.ids.element + "']" );
+ this._on( this.label, {
+ click: function( event ) {
+ if ( !this.options.nativeMenu ) {
+ this.open();
+ event.preventDefault();
+ }
72
73
+ });
74
75
// Create button
76
this.button = $( "<span>", {
0 commit comments