Skip to content

Commit 97b897a

Browse files
committed
Set id in unescaped version.
1 parent 3c1482a commit 97b897a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ the specific language governing permissions and limitations under the Apache Lic
684684
.addClass("select2-hidden-accessible")
685685
.appendTo(document.body);
686686

687-
this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid()).replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
688-
this.containerEventName= "s2id_" + (opts.element.attr("id") || "autogen"+nextUid())
687+
this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid());
688+
this.containerEventName= this.containerId
689689
.replace(/([.])/g, '_')
690690
.replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
691691
this.container.attr("id", this.containerId);

0 commit comments

Comments
 (0)