Skip to content

Commit

Permalink
fix: prevent FABGroup click when its hidden (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbinda authored and Trancever committed Apr 20, 2020
1 parent 4b400d6 commit df28d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/FAB/FABGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class FABGroup extends React.Component<Props, State> {
<View
key={i} // eslint-disable-line react/no-array-index-key
style={styles.item}
pointerEvents="box-none"
pointerEvents={open ? 'box-none' : 'none'}
>
{it.label && (
<Card
Expand Down Expand Up @@ -318,6 +318,7 @@ class FABGroup extends React.Component<Props, State> {
accessibilityComponentType="button"
accessibilityRole="button"
testID={it.testID}
visible={open}
/>
</View>
))}
Expand Down

0 comments on commit df28d87

Please sign in to comment.