Skip to content

Commit 68ce5b4

Browse files
committed
feat: stop suggestion menu event propagation
1 parent babefe9 commit 68ce5b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react/src/components/SuggestionMenu/hooks/useSuggestionMenuKeyboardNavigation.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export function useSuggestionMenuKeyboardNavigation<Item>(
3535

3636
if (event.key === "Enter" && !event.isComposing) {
3737
event.preventDefault();
38+
event.stopPropagation();
3839

3940
if (items.length) {
4041
onItemClick?.(items[selectedIndex]);

0 commit comments

Comments
 (0)