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

Make it possible to event.stopPropagation() in onClickOutside #1159

Open
EugenDueck opened this issue Mar 10, 2024 · 1 comment
Open

Make it possible to event.stopPropagation() in onClickOutside #1159

EugenDueck opened this issue Mar 10, 2024 · 1 comment

Comments

@EugenDueck
Copy link

EugenDueck commented Mar 10, 2024

Problem

When I click outside of the tippy content, onClickOutside gets called, but also other click handlers, unrelated to the Tippy component, get executed.

Codesandbox to reproduce the issue:

  1. Click "Show Tippy"
  2. Click "Click to increase count" -> this increases the counter despite e.stopPropagation()

Solution

This could e.g. be made possible by laying a (transparent) div over all content.

@zhandosainabek
Copy link

The same issue here :)

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

No branches or pull requests

2 participants