Skip to content

Commit

Permalink
Adding client's search component class to exclude from getting it cli…
Browse files Browse the repository at this point in the history
…cked on keydown (#3145)

Fix: Checking for client's search component on keydown
  • Loading branch information
bandana147 authored Nov 6, 2024
1 parent 9cb0da1 commit f12d8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/blocks/global-navigation/utilities/keyboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class KeyboardNavigation {
}
case 'Enter':
case 'Space': {
if (e.target.closest(selectors.searchField)) return;
if (e.target.closest(selectors.searchField) || e.target.closest('.feds-client-search')) return;
e.stopPropagation();
e.preventDefault();
e.target.click();
Expand Down

0 comments on commit f12d8ec

Please sign in to comment.