From d594fc35eed843d8f8abe60c1e338e1369f3e7e5 Mon Sep 17 00:00:00 2001 From: aneequeahmad Date: Fri, 24 Feb 2023 02:36:28 +0500 Subject: [PATCH] Fix edit message highlight issue --- src/pages/home/report/ReportActionItemMessageEdit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionItemMessageEdit.js b/src/pages/home/report/ReportActionItemMessageEdit.js index abef7beb65ca..dfcc2e69d918 100644 --- a/src/pages/home/report/ReportActionItemMessageEdit.js +++ b/src/pages/home/report/ReportActionItemMessageEdit.js @@ -247,13 +247,13 @@ class ReportActionItemMessageEdit extends React.Component { toggleReportActionComposeView(false, this.props.isSmallScreenWidth); }} onBlur={(event) => { + this.setState({isFocused: false}); const relatedTargetId = lodashGet(event, 'nativeEvent.relatedTarget.id'); // Return to prevent re-render when save/cancel button is pressed which cancels the onPress event by re-rendering if (_.contains([this.saveButtonID, this.cancelButtonID, this.emojiButtonID], relatedTargetId)) { return; } - this.setState({isFocused: false}); if (this.messageEditInput === relatedTargetId) { return;