Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
6 files
+ 6
6
Compare changes
  • Side-by-side
  • Inline
Files
6
  • 281904b8
    Issue #3262139 by kostyashupenko, ahughes3, mherchel: Olivero: Removal of... · 281904b8
    Lauri Timmanee authored
    Issue #3262139 by kostyashupenko, ahughes3, mherchel: Olivero: Removal of checking for 'Esc' on keyup when checking for the Escape key
@@ -56,7 +56,7 @@
@@ -56,7 +56,7 @@
// Close any open sub-navigation first, then close the header navigation.
// Close any open sub-navigation first, then close the header navigation.
document.addEventListener('keyup', (e) => {
document.addEventListener('keyup', (e) => {
if (e.key === 'Escape' || e.key === 'Esc') {
if (e.key === 'Escape') {
if (props.olivero.areAnySubNavsOpen()) {
if (props.olivero.areAnySubNavsOpen()) {
props.olivero.closeAllSubNav();
props.olivero.closeAllSubNav();
} else {
} else {
Loading