Skip to content

Commit

Permalink
add timing to timeout function
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoboludo committed Oct 25, 2021
1 parent 32c2f05 commit 8a8c016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ class MenuDrawer extends HTMLElement {
} else {
setTimeout(() => {
detailsElement.classList.add('menu-opening');
!reducedMotion || reducedMotion.matches ? addTrapFocus() : summaryElement.nextElementSibling.addEventListener('transitionend', addTrapFocus);
summaryElement.setAttribute('aria-expanded', true);
});
!reducedMotion || reducedMotion.matches ? addTrapFocus() : summaryElement.nextElementSibling.addEventListener('transitionend', addTrapFocus);
}, 100);
}
}

Expand Down

0 comments on commit 8a8c016

Please sign in to comment.