Skip to content

Commit

Permalink
Merge pull request #95 from cweinreben/master
Browse files Browse the repository at this point in the history
Correcting ARIA handling when opening a dropdown
  • Loading branch information
CWSpear committed Feb 7, 2015
2 parents ace10bf + c228066 commit 7d869e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap-hover-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
openDropdown(event);
}, function () {
timeout = window.setTimeout(function () {
$this.attr('aria-expanded', 'false');
$parent.removeClass('open');
$this.trigger(hideEvent);
}, settings.delay);
Expand Down Expand Up @@ -96,6 +97,7 @@
$allDropdowns.removeClass('open');

window.clearTimeout(timeout);
$this.attr('aria-expanded', 'true');
$parent.addClass('open');
$this.trigger(showEvent);
}
Expand Down

0 comments on commit 7d869e7

Please sign in to comment.