Skip to content

Commit

Permalink
Merge pull request #16619 from bernhardoj/fix/15818
Browse files Browse the repository at this point in the history
prevent blur when click emoji reaction
  • Loading branch information
Julesssss authored Mar 29, 2023
2 parents 3a9ce6f + 8de9ddd commit d8657ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Reactions/AddReactionBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ const AddReactionBubble = (props) => {
StyleUtils.getEmojiReactionBubbleStyle(hovered || pressed, false, props.sizeScale),
]}
onPress={onPress}

// Prevent text input blur when Add reaction is clicked
onMouseDown={e => e.preventDefault()}
>
{({
hovered,
Expand Down
3 changes: 3 additions & 0 deletions src/components/Reactions/EmojiReactionBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ const EmojiReactionBubble = (props) => {
]}
onPress={props.onPress}
onLongPress={props.onReactionListOpen}

// Prevent text input blur when emoji reaction is clicked
onMouseDown={e => e.preventDefault()}
>
<Text style={[
styles.emojiReactionText,
Expand Down

0 comments on commit d8657ba

Please sign in to comment.