Open gabrieljablonski opened 1 month ago
The changes made to the tooltip functionality enhance the event handling logic for opening and closing tooltips. The conditions for detecting click events have been updated to allow for more flexible interactions, particularly when nested elements are involved. This aims to improve user experience by ensuring that tooltips remain open or closed appropriately based on user interactions with child elements.
File | Change Summary |
---|---|
src/components/Tooltip/Tooltip.tsx |
Modified event handling logic for opening and closing tooltips to check for containment rather than strict equality. |
Objective | Addressed | Explanation |
---|---|---|
Closing event accepted also if the event arrives from another nested target element. (#1220) | ✅ |
🐰 "In a world where tooltips play,
Clicks now dance in a nested way.
No more closures that cause dismay,
With each click, they’ll stay or sway!
Hooray for changes, hip-hip-hooray!" 🐇✨
[!TIP] We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Beta version released with the last commit 🚀
yarn add react-tooltip@5.28.0-beta.1224.rc.0
or
npm install react-tooltip@5.28.0-beta.1224.rc.0
Aiming to close #1220
Does not work yet, tested against this sandbox.
Summary by CodeRabbit