Closed FlorisVeldhuizen closed 1 year ago
Have the same issue, it looks like arrowContent
prop is ignored.
Same issue. The "arrowContent" prop still exists on Tooltip, but was removed from Popup, and the instance of Popup in the Tooltip was changed to omit the arrowContent prop in the 5.3.1->6.0.0 changes. https://github.com/react-component/tooltip/compare/v5.3.1...v6.0.0 Popup.tsx line 9 Tooltip.tsx line 76
In latest version. rc-tooltip
use @rc-component/trigger
arrow config instead. But yes, ignore arrowContent should be fixed.
So in the end, which is the solution? I am still having the arrow in wrong position:
So in the end, which is the solution? I am still having the arrow in wrong position:
The issue still persists, I don't know why this was closed!
So in the end, which is the solution? I am still having the arrow in wrong position:
The issue still persists, I don't know why this was closed!
Run npm ls @rc-component/trigger
to see what version it is.
So in the end, which is the solution? I am still having the arrow in wrong position:
The issue still persists, I don't know why this was closed!
Run
npm ls @rc-component/trigger
to see what version it is.
same issue, result of ls - @rc-component/trigger@1.17.0
@cristian-sima @FlorisVeldhuizen @k10wl Could you provide a new reproduction link and open a new issue in antd repo?
The example page is broken (both locally and online), so no easy way to show you atm. If you are able to fix the example page you will see that the arrows still not align properly!
Thanks for providing the working demo page! The arrow alignment:
@zombieJ Do we need to set the trigger's transform-origin in the tooltip to solve it?
In the provided example of this repo, the tooltip arrow now aligns like this:
which is caused by this styling that is applied to
<div class="rc-tooltip-arrow"></div>
.When this inline styling is removed, the arrow alignment looks normal again:
Changes in the
@rc-component/trigger
have caused changes in the arrow alignment, so the problem probably lies there.