diff --git a/src/components/LHNOptionsList/OptionRowLHN.js b/src/components/LHNOptionsList/OptionRowLHN.js index 84c1e5c6d7da..679041b52d7a 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.js +++ b/src/components/LHNOptionsList/OptionRowLHN.js @@ -152,6 +152,14 @@ function OptionRowLHN(props) { props.onSelectRow(optionItem, popoverAnchor); }} + onMouseDown={(e) => { + if (!e) { + return; + } + + // Prevent losing Composer focus + e.preventDefault(); + }} onSecondaryInteraction={(e) => showPopover(e)} withoutFocusOnSecondaryInteraction activeOpacity={0.8} diff --git a/src/pages/home/sidebar/SidebarLinks.js b/src/pages/home/sidebar/SidebarLinks.js index 7229db5ace13..4678245cb902 100644 --- a/src/pages/home/sidebar/SidebarLinks.js +++ b/src/pages/home/sidebar/SidebarLinks.js @@ -185,10 +185,11 @@ class SidebarLinks extends React.Component { * @param {String} option.reportID */ showReportPage(option) { - if (this.props.isCreateMenuOpen || (this.props.isSmallScreenWidth && Navigation.getTopmostReportId())) { - // Prevent opening Report page when click LHN row quickly after clicking FAB icon - // or when continuously click different LHNs, only apply to small screen since - // getTopmostReportId always returns on other devices + // Prevent opening Report page when clicking LHN row quickly after clicking FAB icon + // or when clicking the active LHN row + // or when continuously clicking different LHNs, only apply to small screen + // since getTopmostReportId always returns on other devices + if (this.props.isCreateMenuOpen || this.props.currentReportID === option.reportID || (this.props.isSmallScreenWidth && Navigation.getTopmostReportId())) { return; } Navigation.navigate(ROUTES.getReportRoute(option.reportID));