ソースを参照

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.search.removeClass("select2-active");
+
+            // Remove the aria active descendant for highlighted element
+            this.search.removeAttr("aria-activedescendant");
             this.opts.element.trigger($.Event("select2-close"));
         },