Skip to content

Commit

Permalink
Correcting ARIA handling when opening a dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
cweinreben committed Jan 13, 2015
1 parent ace10bf commit c228066
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 c228066

Please sign in to comment.