浏览代码

Merge pull request #2875 from Casecommons/master

Fix accessible aria activedescendant attribute
Kevin Brown 10 年之前
父节点
当前提交
ff292d7a66
共有 1 个文件被更改,包括 3 次插入0 次删除
  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.clearSearch();
             this.search.removeClass("select2-active");
             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"));
             this.opts.element.trigger($.Event("select2-close"));
         },
         },