react-popper-tooltip
react-popper-tooltip copied to clipboard
Focus + interactive
trafficstars
Describe the bug
If trigger: ['focus'] and interactive: true the tooltip should not close if clicked
To Reproduce Steps to reproduce the behavior:
- Set
trigger: ['focus']andinteractive: true - Click on the opened tooltip or on any interactive element inside it
- The tooltip is closed
Expected behavior
Tooltip element should stay open if interactive is true and trigger events contains 'focus'
https://user-images.githubusercontent.com/10454741/147751722-2f9104a7-a6a5-4ac0-b705-977a702b51e4.mp4