Skip to content

Commit c228066

Browse files
committed
Correcting ARIA handling when opening a dropdown
1 parent ace10bf commit c228066

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)