Closed klc-delovoy closed 1 week ago
It appears that there are no other similar issues reported in the Ant Design repository besides the one you have mentioned. This might be a unique case or not widely reported yet.
To address this issue, you might consider the following workaround or steps:
Check for Updates: Ensure that you are using the latest version of Ant Design, as updates might contain fixes for such issues.
Re-rendering: Try forcing a re-render of the Select component when reopening the dropdown. This might help in resetting the tooltip behavior.
Custom Tooltip: As a temporary solution, you could implement a custom tooltip logic that ensures the tooltip appears consistently.
If none of these solutions work, I recommend keeping an eye on the issue you reported for any updates or responses from the Ant Design team.
If you have any more questions or need further assistance, feel free to ask.
Hello @klc-delovoy. Please provide a online reproduction by forking this one or provide a minimal GitHub repository like create-react-app-antd. Issues labeled by Need Reproduce
will be closed if no activities in 3 days.
你好 @klc-delovoy,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过 fork 这个在线重现案例 ,或者提供一个最小化的 GitHub 仓库(类似 create-react-app-antd)。3 天内未跟进此 issue 将会被自动关闭。
added Reproduction link
Typography.Text do not have default width. So the ellipsis style is provided by the Select. Adjust code like this to use Typography's ellipsis:
https://codesandbox.io/p/sandbox/antd-tooltip-bug-forked-6xc5ht?file=%2Fsrc%2FApp.tsx%3A22%2C19
@zombieJ Even if you remove the ellipsis from dropdownMenu Select, remove the styling from Typography.Text, and wrap it in a div with a fixed width (for example, 100px), the bug still reproduces when reopening the Select dropdown.
Reproduction link
https://codesandbox.io/p/sandbox/antd-tooltip-bug-fc3lqf
Steps to reproduce
What is expected?
The Ant Design tooltip should consistently appear when hovering over truncated options, regardless of dropdown reopen events.
What is actually happening?
Tooltip always appears when the text is cut off.