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 749c8fb commit 39532f0Copy full SHA for 39532f0
ui/jquery.ui.selectmenu.js
@@ -35,9 +35,9 @@ $.widget( "ui.selectmenu", {
35
},
36
37
_create: function() {
38
- // get / make unique id
39
- var selectmenuId = this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 );
40
-
+ // make / set unique id
+ var selectmenuId = this.element.uniqueId().attr( 'id' );
+
41
// array of button and menu id's
42
this.ids = { id: selectmenuId, button: selectmenuId + '-button', menu: selectmenuId + '-menu' };
43
0 commit comments