Skip to content

Commit

Permalink
fix native edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Nov 15, 2023
1 parent 21ea081 commit ab1dbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function Checkbox(
const firePressHandlerOnClick = (event?: GestureResponderEvent | KeyboardEvent) => {
// Pressable can be triggered with Enter key and by a click. As this is a checkbox,
// We do not want to toggle it, when Enter key is pressed.
if (event?.type !== 'click') {
if (event?.type && event.type !== 'click') {
return;
}

Expand Down

0 comments on commit ab1dbf7

Please sign in to comment.