From 09b7e0a2e2a1eccfa844d5f40723d1499cc404a0 Mon Sep 17 00:00:00 2001 From: Ali Abbas Malik Date: Thu, 10 Jun 2021 05:09:33 -0400 Subject: [PATCH] [IS-3218] Fixed cursor issue --- src/pages/home/report/ReportActionItemMessageEdit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/home/report/ReportActionItemMessageEdit.js b/src/pages/home/report/ReportActionItemMessageEdit.js index 798fc3ad5d0c..5e9bb1ec625d 100644 --- a/src/pages/home/report/ReportActionItemMessageEdit.js +++ b/src/pages/home/report/ReportActionItemMessageEdit.js @@ -62,6 +62,7 @@ class ReportActionItemMessageEdit extends React.Component { * @param {String} newDraft */ updateDraft(newDraft) { + this.textInput.setNativeProps({text: newDraft}); const trimmedNewDraft = newDraft.trim(); this.setState({draft: trimmedNewDraft}); this.debouncedSaveDraft(trimmedNewDraft); @@ -113,6 +114,7 @@ class ReportActionItemMessageEdit extends React.Component { this.textInput = el} onChangeText={this.updateDraft} // Debounced saveDraftComment onKeyPress={this.triggerSaveOrCancel} defaultValue={this.props.draftMessage}