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 e4736f4 commit 0f8f863Copy full SHA for 0f8f863
ui/jquery.ui.selectmenu.js
@@ -36,7 +36,7 @@ $.widget("ui.selectmenu", {
36
var self = this, o = this.options;
37
38
// set a default id value, generate a new random one if not set by developer
39
- var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(':', '\\:');
+ var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(/(:|\.)/g,'')
40
41
// quick array of button and menu id's
42
this.ids = [ selectmenuId, selectmenuId + '-button', selectmenuId + '-menu' ];
0 commit comments