1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Fix accessible aria activedescendant attribute

Remove aria-activedescendant attribute after the dropdown is closed,
to make sure the aria properties is vaild for aduit-tool
[https://code.google.com/p/accessibility-developer-tools/wiki/AuditRules#AX_ARIA_04:_ARIA_state_and_property_values_must_be_valid]
This commit is contained in:
Jeremy Leakakos and Jimmy Chao 2014-12-17 15:23:54 -05:00
parent 086ce8c712
commit db1d18fc5d

View File

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