From 2c4b9c9287dee45b54dd5ea94aefc01a15186ca3 Mon Sep 17 00:00:00 2001 From: Andrew Rosiclair Date: Thu, 1 Dec 2022 15:25:10 -0500 Subject: [PATCH] set context menu active immediately so message stays highlighted --- src/pages/home/report/ReportActionItem.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 5223f50b1637..d751c6ea4add 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -112,6 +112,8 @@ class ReportActionItem extends Component { if (this.props.draftMessage) { return; } + + this.setState({isContextMenuActive: true}); const selection = SelectionScraper.getCurrentSelection(); ReportActionContextMenu.showContextMenu( ContextMenuActions.CONTEXT_MENU_TYPES.REPORT_ACTION, @@ -121,7 +123,7 @@ class ReportActionItem extends Component { this.props.report.reportID, this.props.action, this.props.draftMessage, - this.checkIfContextMenuActive, + undefined, this.checkIfContextMenuActive, ); }