From c2280668551d266cd46d26a4814f3d17049c583a Mon Sep 17 00:00:00 2001 From: Christian Rataj-Weinreben Date: Tue, 13 Jan 2015 22:29:40 +0100 Subject: [PATCH] Correcting ARIA handling when opening a dropdown --- bootstrap-hover-dropdown.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap-hover-dropdown.js b/bootstrap-hover-dropdown.js index 0536f20..74211a2 100644 --- a/bootstrap-hover-dropdown.js +++ b/bootstrap-hover-dropdown.js @@ -54,6 +54,7 @@ openDropdown(event); }, function () { timeout = window.setTimeout(function () { + $this.attr('aria-expanded', 'false'); $parent.removeClass('open'); $this.trigger(hideEvent); }, settings.delay); @@ -96,6 +97,7 @@ $allDropdowns.removeClass('open'); window.clearTimeout(timeout); + $this.attr('aria-expanded', 'true'); $parent.addClass('open'); $this.trigger(showEvent); }