Browse Source

Merge pull request #2875 from Casecommons/master

Fix accessible aria activedescendant attribute
Kevin Brown 10 năm trước cách đây
mục cha
commit
ff292d7a66
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      select2.js

+ 3 - 0
select2.js

@@ -1486,6 +1486,9 @@ the specific language governing permissions and limitations under the Apache Lic
 
             this.clearSearch();
             this.search.removeClass("select2-active");
+
+            // Remove the aria active descendant for highlighted element
+            this.search.removeAttr("aria-activedescendant");
             this.opts.element.trigger($.Event("select2-close"));
         },