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
  • Loading branch information
nkuoch authored Oct 17, 2023
2 parents 361c203 + 9c73b0a commit 4c1ae82
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 4c1ae82

Please sign in to comment.