Skip to content

Commit df28d87

Browse files
jbindaTrancever
authored andcommittedApr 20, 2020
fix: prevent FABGroup click when its hidden (#1845)
1 parent 4b400d6 commit df28d87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/components/FAB/FABGroup.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class FABGroup extends React.Component<Props, State> {
262262
<View
263263
key={i} // eslint-disable-line react/no-array-index-key
264264
style={styles.item}
265-
pointerEvents="box-none"
265+
pointerEvents={open ? 'box-none' : 'none'}
266266
>
267267
{it.label && (
268268
<Card
@@ -318,6 +318,7 @@ class FABGroup extends React.Component<Props, State> {
318318
accessibilityComponentType="button"
319319
accessibilityRole="button"
320320
testID={it.testID}
321+
visible={open}
321322
/>
322323
</View>
323324
))}

0 commit comments

Comments
 (0)