Skip to content

Commit

Permalink
added fix for Expensify#31242 - edit re-opens on change < 1000ms
Browse files Browse the repository at this point in the history
  • Loading branch information
ericuldall committed Nov 13, 2023
1 parent ffe1c63 commit e55e58c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ function ReportActionItemMessageEdit(props) {
*/
const updateDraft = useCallback(
(newDraftInput) => {
debouncedSaveDraft.cancel();
const {text: newDraft, emojis} = EmojiUtils.replaceAndExtractEmojis(newDraftInput, props.preferredSkinTone, preferredLocale);

if (!_.isEmpty(emojis)) {
Expand Down

0 comments on commit e55e58c

Please sign in to comment.