From 927d1a7e536eec7de13a563a044e8ea4d23e1e3c Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Tue, 19 Sep 2023 10:27:20 +0700 Subject: [PATCH] fix lint issue --- src/components/BaseMiniContextMenuItem.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/BaseMiniContextMenuItem.js b/src/components/BaseMiniContextMenuItem.js index 3070012a9294..64a24f526f54 100644 --- a/src/components/BaseMiniContextMenuItem.js +++ b/src/components/BaseMiniContextMenuItem.js @@ -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}) => [