Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants