Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

close ActionStrip and not open note

ammarahm-ed0c252a3337e7
diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.js
index 0a14f0810..b173026a4 100644
--- a/apps/mobile/src/components/SelectionWrapper/index.js
+++ b/apps/mobile/src/components/SelectionWrapper/index.js
@@ -352,6 +352,14 @@ const SelectionWrapper = ({
setActionStrip(!actionStrip);
};
+ const _onPress = async () => {
+ if (actionStrip) {
+ setActionStrip(false);
+ return;
+ }
+ await onPress();
+ }
+
const closeStrip = () => {
setActionStrip(false);
};
@@ -369,7 +377,7 @@ const SelectionWrapper = ({
customColor="transparent"
testID={testID}
onLongPress={onLong}
- onPress={onPress}
+ onPress={_onPress}
customSelectedColor={colors.nav}
customAlpha={!colors.night ? -0.02 : 0.02}
customOpacity={1}