atomiks / tippyjs

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

tippy popout is not clearing clicked else where when we called preventDefault from pointer events #1122

Open rohinikumar4073 opened 1 year ago

rohinikumar4073 commented 1 year ago

Bug description

Calling preventDefault when we listening on the pointer down event is leading to not triggering the mouse down event. This is causing tippy to be not clearing even though we clicked else where.

Reproduction

CodePen link: https://codepen.io/rohinikumar4073/pen/dygRaMb

  1. Click on my button to open tippy popout
  2. Click on button2 observe the popout is not getting cleared.