From 9dc156544355271143ba0a1e5a291ca10fc24056 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Wed, 20 Dec 2023 21:07:46 +0530 Subject: [PATCH] fix: edit box with parent message not focused. Signed-off-by: Krishna Gupta --- src/pages/home/report/ReportActionItemParentAction.js | 5 ++++- src/pages/home/report/ReportActionsListItemRenderer.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionItemParentAction.js b/src/pages/home/report/ReportActionItemParentAction.js index c11200ccc4db..d1a294881eb9 100644 --- a/src/pages/home/report/ReportActionItemParentAction.js +++ b/src/pages/home/report/ReportActionItemParentAction.js @@ -24,6 +24,9 @@ const propTypes = { /** The id of the report */ reportID: PropTypes.string.isRequired, + /** Position index of the report parent action in the overall report FlatList view */ + index: PropTypes.number.isRequired, + /** The id of the parent report */ // eslint-disable-next-line react/no-unused-prop-types parentReportID: PropTypes.string.isRequired, @@ -72,7 +75,7 @@ function ReportActionItemParentAction(props) { displayAsGroup={false} isMostRecentIOUReportAction={false} shouldDisplayNewMarker={props.shouldDisplayNewMarker} - index={0} + index={props.index} /> )} diff --git a/src/pages/home/report/ReportActionsListItemRenderer.js b/src/pages/home/report/ReportActionsListItemRenderer.js index 0e558541c69a..903110e40bc3 100644 --- a/src/pages/home/report/ReportActionsListItemRenderer.js +++ b/src/pages/home/report/ReportActionsListItemRenderer.js @@ -61,6 +61,7 @@ function ReportActionsListItemRenderer({ reportID={report.reportID} parentReportID={`${report.parentReportID}`} shouldDisplayNewMarker={shouldDisplayNewMarker} + index={index} /> ) : (