Skip to content

[FEAT REQ] Hide on scroll/resize #1031

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

Closed
gabrieljablonski opened this issue May 23, 2023 Discussed in #1030 · 2 comments · Fixed by #1040
Closed

[FEAT REQ] Hide on scroll/resize #1031

gabrieljablonski opened this issue May 23, 2023 Discussed in #1030 · 2 comments · Fixed by #1040

Comments

@gabrieljablonski
Copy link
Member

gabrieljablonski commented May 23, 2023

Discussed in #1030

Originally posted by moloko May 23, 2023
I've just been trying out react-tooltip and really like it - except for one issue I can't seem to solve, which is that the tooltip doesn't immediately disappear if you scroll.

I think it's likely a similar issue to #746 given that it seems to work fine on the examples in the docs. But I can't use the same isCapture solution that was given for #746 as it doesn't seem to be available in v5.

I notice that here it says 'scrollHide - can be implemented if requested' - so maybe it's that which is needed?

@gabrieljablonski
Copy link
Member Author

disableHideOnScroll/Resize props would probably be better than hideOnScroll/Resize, since having this behavior enabled by default seems to be common in most places I've seen.

@gabrieljablonski
Copy link
Member Author

Props closeOnScroll and closeOnResize available with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant