<Tooltip /> 在气泡未展示时,onVisibleChange 的参数可能会为 true #4579
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
当最开始
<Tooltip />
的title
为空时,在鼠标滑过元素时,onVisibleChange
此时获取到当前组件的visible = true
,然后此时并没有气泡,如果值为false
是不是要合理些?然后这样也会导致当下次组件的title
从无到有时,气泡会突然出现,而预期的是希望滑过时才会出现气泡。然后,看了下代码逻辑,如果在/tooltip/index.tsx#L65加个对
title
、overlay
是否为空的判断,应该可以解决这个问题。见下图,查看demo
The text was updated successfully, but these errors were encountered: