Explorar o código

Merge pull request #2875 from Casecommons/master

Fix accessible aria activedescendant attribute
Kevin Brown %!s(int64=10) %!d(string=hai) anos
pai
achega
ff292d7a66
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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"));
         },