We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c1482a commit 97b897aCopy full SHA for 97b897a
1 file changed
select2.js
@@ -684,8 +684,8 @@ the specific language governing permissions and limitations under the Apache Lic
684
.addClass("select2-hidden-accessible")
685
.appendTo(document.body);
686
687
- this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid()).replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
688
- this.containerEventName= "s2id_" + (opts.element.attr("id") || "autogen"+nextUid())
+ this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid());
+ this.containerEventName= this.containerId
689
.replace(/([.])/g, '_')
690
.replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
691
this.container.attr("id", this.containerId);
0 commit comments