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

Pass event into onHide callback #1165

Open
zipper opened this issue Apr 12, 2024 · 0 comments
Open

Pass event into onHide callback #1165

zipper opened this issue Apr 12, 2024 · 0 comments

Comments

@zipper
Copy link

zipper commented Apr 12, 2024

Problem

I'm using hideOnClick: true to hide the tooltip when clicked outside the component. But I need to prevent the hiding when clicked inside the related component. Since there is no event in the onHide callback and onClickOutside cannot prevent the hiding, this behaviour cannot be achieved in a clean way. Instead I have to rely on the deprecated window.event.

Solution

An event should be passed in the onHide callback and / or hiding should be preventable from onClickOutside as suggested in #1155.

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

1 participant