Open cheton opened 1 month ago
This enhancement will make the tooltip positioning dynamic based on overflow state:
+ const more = {
+ disabled: !isOverflow,
+ };
+ if (isOverflow) {
+ more.nextToCursor = true;
+ }
+
return (
<Tooltip
ref={ref}
arrow={false}
disabled={!isOverflow}
- nextToCursor={true}
+ {...more}
{...rest}
>
Learn how to migrate from Popper v2 to Floating UI: https://floating-ui.com/docs/migration
Popper v2 https://popper.js.org/docs/v2/
Floating UI https://floating-ui.com/