Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Sep 19, 2023
1 parent e5c1033 commit 927d1a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/BaseMiniContextMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ function BaseMiniContextMenuItem(props) {
ref={props.innerRef}
onPress={props.onPress}
onMouseDown={(e) => {
if (ReportActionComposeFocusManager.isFocused() || ReportActionComposeFocusManager.isEditFocused()) {
e.preventDefault();
if (!ReportActionComposeFocusManager.isFocused() && !ReportActionComposeFocusManager.isEditFocused()) {
return;
}

e.preventDefault();
}}
accessibilityLabel={props.tooltipText}
style={({hovered, pressed}) => [
Expand Down

0 comments on commit 927d1a7

Please sign in to comment.