From 4e33de0f088c35e6fd1ed96b5ccc6f7894cab639 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 21 Jun 2023 21:52:46 +0000 Subject: [PATCH] Twenty Nineteen: Fix a JS coding standard issue found after [55970]. Follow-up to [55970]. See #46474. git-svn-id: https://develop.svn.wordpress.org/trunk@55972 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentynineteen/js/touch-keyboard-navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js b/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js index 073102fe23..0d6a427ecb 100644 --- a/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js +++ b/src/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js @@ -274,7 +274,7 @@ document.addEventListener('focus', function(event) { - if ( event.target != window.document && event.target.matches( '.main-navigation > div > ul > li a' ) ) { + if ( event.target !== window.document && event.target.matches( '.main-navigation > div > ul > li a' ) ) { // Remove Focused elements in sibling div. var currentDiv = getCurrentParent( event.target, 'div', '.main-navigation' );