atomiks / tippyjs

Tooltip, popover, dropdown, and menu library
https://atomiks.github.io/tippyjs/
MIT License
11.97k stars 520 forks source link

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

Open EugenDueck opened 6 months ago

EugenDueck commented 6 months ago

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 commented 6 months ago

The same issue here :)