From 076f86dc2265926b0c8b80e19bddbb878171498e Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 3 Mar 2020 11:05:50 +0500 Subject: [PATCH] fix: selection not clear on exit selectioMode --- apps/mobile/src/components/SelectionHeader/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js index f6b89dc05..75a2e7438 100644 --- a/apps/mobile/src/components/SelectionHeader/index.js +++ b/apps/mobile/src/components/SelectionHeader/index.js @@ -68,6 +68,8 @@ export const SelectionHeader = ({navigation}) => { { dispatch({type: ACTIONS.SELECTION_MODE, enabled: !selectionMode}); + + dispatch({type: ACTIONS.CLEAR_SELECTION}); }} hitSlop={{top: 20, bottom: 20, left: 50, right: 40}} style={{