Santize automatically generated ids
This closes https://github.com/select2/select2/issues/3618. This closes https://github.com/select2/select2/pull/4123.
This commit is contained in:
parent
75163d67cb
commit
65179f16de
1
src/js/select2/core.js
vendored
1
src/js/select2/core.js
vendored
@ -99,6 +99,7 @@ define([
|
||||
id = Utils.generateChars(4);
|
||||
}
|
||||
|
||||
id = id.replace(/(:|\.|\[|\]|,)/g, '');
|
||||
id = 'select2-' + id;
|
||||
|
||||
return id;
|
||||
|
Loading…
Reference in New Issue
Block a user