Skip to content

Commit 17e2cb7

Browse files
committed
Change cursor pointer/auto logic in non-custom backdrop
1 parent 0d536fd commit 17e2cb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Modal/ReanimatedModal/Backdrop/index.web.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import noop from 'lodash/noop';
12
import React, {useMemo} from 'react';
23
import {View} from 'react-native';
34
import Animated, {Easing, Keyframe} from 'react-native-reanimated';
@@ -59,7 +60,7 @@ function Backdrop({
5960
accessible
6061
accessibilityLabel={translate('modal.backdropLabel')}
6162
onPress={onBackdropPress}
62-
style={[styles.userSelectNone, styles.cursorAuto]}
63+
style={[styles.userSelectNone, onBackdropPress && onBackdropPress !== noop ? styles.cursorPointer : styles.cursorAuto]}
6364
dataSet={{[CONST.SELECTION_SCRAPER_HIDDEN_ELEMENT]: true}}
6465
>
6566
{isBackdropVisible && (

0 commit comments

Comments
 (0)