Skip to content

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

mobile: clear selection after deleting items

Ammar Ahmed4a2da72fa338
diff --git a/apps/mobile/app/components/selection-header/index.tsx b/apps/mobile/app/components/selection-header/index.tsx
index ffdf8311e..c0170f3a4 100644
--- a/apps/mobile/app/components/selection-header/index.tsx
+++ b/apps/mobile/app/components/selection-header/index.tsx
@@ -306,7 +306,10 @@ export const SelectionHeader = React.memo(
deleteItems(
undefined,
useSelectionStore.getState().selectionMode
- );
+ ).then(() => {
+ useSelectionStore.getState().clearSelection();
+ useSelectionStore.getState().setSelectionMode(undefined);
+ });
}}
tooltipText="Move to trash"
tooltipPosition={1}