Skip to content

Commit

Permalink
Remove additional letters
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiktd committed May 15, 2023
1 parent e8cfc3a commit 19f06b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ class ReportActionCompose extends React.Component {
const commentAfterColonWithEmojiNameRemoved = this.state.value.slice(this.state.selection.end).replace(CONST.REGEX.EMOJI_REPLACER, CONST.SPACE);

this.updateComment(`${commentBeforeColon}${emojiCode} ${commentAfterColonWithEmojiNameRemoved}`, true);
// Clear the contents of a TextInput in some android keyboards
// In some Android phones keyboard, the text to search for the emoji is not cleared
// will be added after the user starts typing again on the keyboard. This package is
// a workaround to reset the keyboard natively.
if (RNTextInputReset) {
RNTextInputReset.resetKeyboardInput(findNodeHandle(this.textInput));
}
Expand Down

0 comments on commit 19f06b2

Please sign in to comment.