Skip to content

Commit

Permalink
feat: stop suggestion menu event propagation (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfanselmo authored Jan 17, 2025
1 parent 0341242 commit 81cb3ce
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function useSuggestionMenuKeyboardNavigation<Item>(

if (event.key === "Enter" && !event.isComposing) {
event.preventDefault();
event.stopPropagation();

if (items.length) {
onItemClick?.(items[selectedIndex]);
Expand Down

0 comments on commit 81cb3ce

Please sign in to comment.