1
0
mirror of synced 2024-11-22 13:06:08 +03:00

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:
Ben 2016-02-14 13:39:22 -05:00 committed by Kevin Brown
parent 75163d67cb
commit 65179f16de

View File

@ -99,6 +99,7 @@ define([
id = Utils.generateChars(4);
}
id = id.replace(/(:|\.|\[|\]|,)/g, '');
id = 'select2-' + id;
return id;