Skip to content

Commit 7d869e7

Browse files
committed
Merge pull request #95 from cweinreben/master
Correcting ARIA handling when opening a dropdown
2 parents ace10bf + c228066 commit 7d869e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bootstrap-hover-dropdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
openDropdown(event);
5555
}, function () {
5656
timeout = window.setTimeout(function () {
57+
$this.attr('aria-expanded', 'false');
5758
$parent.removeClass('open');
5859
$this.trigger(hideEvent);
5960
}, settings.delay);
@@ -96,6 +97,7 @@
9697
$allDropdowns.removeClass('open');
9798

9899
window.clearTimeout(timeout);
100+
$this.attr('aria-expanded', 'true');
99101
$parent.addClass('open');
100102
$this.trigger(showEvent);
101103
}

0 commit comments

Comments
 (0)