We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c814143 + 651047d commit 2e55383Copy full SHA for 2e55383
1 file changed
select2.js
@@ -699,12 +699,15 @@ the specific language governing permissions and limitations under the Apache Lic
699
700
this.container = this.createContainer();
701
702
- this.liveRegion = $("<span>", {
703
- role: "status",
704
- "aria-live": "polite"
705
- })
706
- .addClass("select2-hidden-accessible")
707
- .appendTo(document.body);
+ this.liveRegion = $('.select2-hidden-accessible');
+ if (this.liveRegion.length == 0) {
+ this.liveRegion = $("<span>", {
+ role: "status",
+ "aria-live": "polite"
+ })
708
+ .addClass("select2-hidden-accessible")
709
+ .appendTo(document.body);
710
+ }
711
712
this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid());
713
this.containerEventName= this.containerId
0 commit comments