Skip to content

Commit

Permalink
Merge pull request Expensify#22530 from hungvu193/fix-21920
Browse files Browse the repository at this point in the history
Fix: Compose box is stuck with non removable space if we add space, click on upper arrow to edit and save edited message
  • Loading branch information
iwiznia authored Jul 10, 2023
2 parents ae912f2 + e16aa1f commit 17474af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ class ReportActionCompose extends React.Component {
if (
e.key === CONST.KEYBOARD_SHORTCUTS.ARROW_UP.shortcutKey &&
this.textInput.selectionStart === 0 &&
this.state.isCommentEmpty &&
this.state.value.length === 0 &&
!ReportUtils.chatIncludesChronos(this.props.report)
) {
e.preventDefault();
Expand Down

0 comments on commit 17474af

Please sign in to comment.