Skip to content

Commit

Permalink
fix: Drawer on macos is registering clicks despite being inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
hsjoberg committed Aug 4, 2023
1 parent c43208f commit 6dc17b0
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -421,6 +421,11 @@ export function Drawer({
drawerAnimatedStyle,
drawerStyle as any,
]}
pointerEvents={
Platform.OS === 'macos' && drawerType !== 'permanent' && !isOpen
? 'none'
: undefined
}
>
{renderDrawerContent()}
</Animated.View>
Expand Down

0 comments on commit 6dc17b0

Please sign in to comment.