Skip to content

Commit

Permalink
fix: stop propagation of keyboard enter event
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Dec 5, 2023
1 parent 79eb8bc commit 8405c18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EmojiPicker/EmojiPickerMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ function EmojiPickerMenu(props) {
const emoji = lodashGet(item, ['types', preferredSkinTone], item.code);
onEmojiSelected(emoji, item);
keyBoardEvent.preventDefault();
keyBoardEvent.stopPropagation();
return;
}

Expand Down

0 comments on commit 8405c18

Please sign in to comment.