Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): sticky preset image tooltip
There's a bug where preset image tooltips get stuck open in the list. After much fiddling, debugging, and review of upstream dependencies, I have determined that this is bug in Chakra-UI v2. Specifically, it appears to be a race condition related to the Tooltip component's internal use of the `useDisclosure` hook to manage tooltip open state, and the react render cycle. Unfortunately, Chakra v2 is no longer being updated, and it's a pain in the butt to vendor and fix that component given its dependencies. Not 100% sure I could easily fix it, anyways. Fortunately, there is a workaround - reduce the tooltip openDelay to 0ms. I prefer the current 500ms delay but I think it's preferable to have too-quick tooltips than too-sticky tooltips...
- Loading branch information