You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest version of Gutenberg enabled the tooltip on one of our custom blocks does not function as expected. While the tooltip does appear when you hover, once you move the mouse at all, the tooltip vanishes.
This does not reproduce in isolated environments (Tooltip Storybook, StackBlitz with Placeholder), but I do see it happening in other core block placeholders (e.g. Group block) in the editor.
Likely an issue within the editor, or a specific consumer pattern?
The strange thing is that it happens when the editor is an iframe (meta boxes are disabled), but not when the editor is not an iframe (meta boxes are enabled).
The strange thing is that it happens when the editor is an iframe (meta boxes are disabled), but not when the editor is not an iframe (meta boxes are enabled).
I haven't looked too deeply into it. I think it might be related to the offset of the iframe. I can see ariakit has some code that looks like this (as part of a hovercard component that tooltip seems to be based on):
Activity
mirka commentedon Jul 8, 2024
This does not reproduce in isolated environments (
TooltipStorybook, StackBlitz withPlaceholder), but I do see it happening in other core block placeholders (e.g. Group block) in the editor.Likely an issue within the editor, or a specific consumer pattern?
t-hamano commentedon Jul 9, 2024
This issue is similar to #55408.
The strange thing is that it happens when the editor is an iframe (meta boxes are disabled), but not when the editor is not an iframe (meta boxes are enabled).
bfcd321f425ca8e55c30bca4861d9f41.mp4
talldan commentedon Jul 9, 2024
I haven't looked too deeply into it. I think it might be related to the offset of the iframe. I can see ariakit has some code that looks like this (as part of a hovercard component that tooltip seems to be based on):
It looks like the
isPointInPolygoncheck that fails.