Skip to content

Commit

Permalink
Merge pull request #639 from tomusborne/fix/dropdown-click-off-canvas…
Browse files Browse the repository at this point in the history
…-bug

Fix: Dropdown click issue in off-canvas panel
  • Loading branch information
tomusborne authored Sep 2, 2024
2 parents 6f50283 + bc09890 commit 64c01d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/dropdown-click.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// Open the sub-menu by clicking on the entire link element
if ( body.classList.contains( 'dropdown-click-menu-item' ) ) {
for ( i = 0; i < parentElementLinks.length; i++ ) {
parentElementLinks[ i ].addEventListener( 'click', dropdownClick, false );
parentElementLinks[ i ].addEventListener( 'click', dropdownClick, true );

parentElementLinks[ i ].addEventListener( 'keydown', function( e ) {
var _this = this;
Expand Down

0 comments on commit 64c01d9

Please sign in to comment.