1
0
mirror of synced 2024-11-25 22:36:03 +03:00

Merge pull request #2875 from Casecommons/master

Fix accessible aria activedescendant attribute
This commit is contained in:
Kevin Brown 2014-12-19 11:56:22 -05:00
commit ff292d7a66

View File

@ -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"));
}, },