Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onOutsidePress doesn't trigger if clicked on any event outside OutsidePressHandler #160

Closed
BashisthaSudeep opened this issue Mar 20, 2023 · 1 comment · Fixed by #253
Closed

Comments

@BashisthaSudeep
Copy link

BashisthaSudeep commented Mar 20, 2023

Thanks for the awesome library. I'm using it on react native web.

I'm facing the issue where clicking anything outside like Buttons or TouchableOpacity doesn't trigger onOutsidePress

Example:

<>
  <OutsidePressHandler
  disabled={false}
  onOutsidePress={() => {
    console.log("Clicked outside 200 x 200 view")
  }}>
    <View style={{  height: 200, width: 200}}></View>
  </OutsidePressHandler>
  <TouchableOpacity onPress={() => console.log("Clicked!")}>
    <Text>Click Me</Text>
  </TouchableOpacity>
</>

Clicking on Click Me doesn't trigger onOutsidePress

@tvillafane
Copy link

bumping this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants