Skip to content

Commit

Permalink
fix: prevent FABGroup click when its hidden (callstack#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbinda authored and Mariia Marchenkova committed Jun 2, 2020
1 parent 10cc4c0 commit 72810f4
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 72810f4

Please sign in to comment.