mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: selection not clear on exit selectioMode
This commit is contained in:
@@ -68,6 +68,8 @@ export const SelectionHeader = ({navigation}) => {
|
|||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
dispatch({type: ACTIONS.SELECTION_MODE, enabled: !selectionMode});
|
dispatch({type: ACTIONS.SELECTION_MODE, enabled: !selectionMode});
|
||||||
|
|
||||||
|
dispatch({type: ACTIONS.CLEAR_SELECTION});
|
||||||
}}
|
}}
|
||||||
hitSlop={{top: 20, bottom: 20, left: 50, right: 40}}
|
hitSlop={{top: 20, bottom: 20, left: 50, right: 40}}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in New Issue
Block a user