Skip to content

Commit

Permalink
Merge pull request #29752 from astrohunter62/a-28324
Browse files Browse the repository at this point in the history
fix/regression LHN-App crashes on long pressing any report in the LHN

(cherry picked from commit 4c1ae82)
  • Loading branch information
nkuoch authored and OSBotify committed Oct 17, 2023
1 parent 5a42720 commit d2cf01f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/LHNOptionsList/OptionRowLHN.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ function OptionRowLHN(props) {
onSecondaryInteraction={(e) => {
showPopover(e);
// Ensure that we blur the composer when opening context menu, so that only one component is focused at a time
DomUtils.getActiveElement().blur();
if (DomUtils.getActiveElement()) {
DomUtils.getActiveElement().blur();
}
}}
withoutFocusOnSecondaryInteraction
activeOpacity={0.8}
Expand Down

0 comments on commit d2cf01f

Please sign in to comment.