[英]Tooltip with PopperJs, showing first state unpositioned
https://codesandbox.io/s/intelligent-feynman-j5wzv https://codesandbox.io/s/intelligent-feynman-j5wzv
If you hover on the button, you will see an effect in the first rendering and then the right position of the Tooltip, Am I missing anything when using popperjs properly?如果您将鼠标悬停在按钮上,您将在第一次渲染中看到效果,然后是 Tooltip 的正确位置,正确使用 popperjs 时我是否遗漏了什么?
Solution was to add to StyledToolTip some visibility attributes:解决方案是向 StyledToolTip 添加一些可见性属性:
visibility: "hidden"
"&[data-popper-placement]": {
visibility: "visible",
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.