Skip to content

Commit

Permalink
don't show main composer when the composer is blurred by emoji picker
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Apr 30, 2024
1 parent 90e3c36 commit fcb6674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemMessageEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function ReportActionItemMessageEdit(
setIsFocused(false);
// @ts-expect-error TODO: TextInputFocusEventData doesn't contain relatedTarget.
const relatedTargetId = event.nativeEvent?.relatedTarget?.id;
if (relatedTargetId && [messageEditInput, emojiButtonID].includes(relatedTargetId)) {
if ((relatedTargetId && [messageEditInput, emojiButtonID].includes(relatedTargetId)) || EmojiPickerAction.isEmojiPickerVisible()) {
return;
}
setShouldShowComposeInputKeyboardAware(true);
Expand Down

0 comments on commit fcb6674

Please sign in to comment.