Skip to content

Commit

Permalink
Update assets/global.js
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Alsbury <60230011+tyleralsbury@users.noreply.github.com>
  • Loading branch information
ludoboludo and tyleralsbury authored Oct 19, 2021
1 parent 57beb27 commit 7057d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class MenuDrawer extends HTMLElement {
const detailsElement = summaryElement.parentNode;
const isOpen = detailsElement.hasAttribute('open');

function addTrapFocus(event) {
function addTrapFocus() {
trapFocus(summaryElement.nextElementSibling, detailsElement.querySelector('button'));
summaryElement.nextElementSibling.removeEventListener('transitionend', addTrapFocus);
}
Expand Down

0 comments on commit 7057d5f

Please sign in to comment.