New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select dropdown doesn't show when click on select (I need to click second time on a different area) #27018
Comments
Hello @Giorgi-M. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by 你好 @Giorgi-M, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。 |
@afc163 It seems not easy to reproduce on different code base; also I am a bit busy nowadays. But the image proves the bug is there 100%. |
@afc163 I downgraded antd version to 4.6.0 and the bug doesn't happen anymore, which again proves this is bug of the component. |
I have the same problem |
@dingchaoyan1983 If you can post reproducible example it would be nice otherwise they will close this issue(I couldn't reproduce easily, was also a bit busy). @afc163 |
I have the same problem with <Popover
content={
<p>
example content
</p>
}
title="example title"
trigger="click"
>
<Button type="primary" shape="circle" icon={<InfoCircleOutlined />} />
</Popover> I click once on the button, and nothing happens. Then when I click a second time it will both open and close the |
I also experience this with |
Hello, I am having the same problem in a huge codebase with basically all Popover and Select components, but when I build a minimal example to reproduce it, it does not happen. So it might be something interfering with antd, or a different part of antd interfering with these components, or just the plain react tree complexity.... Also, sometimes it does not break at all until the 20th click or so, and sometimes it happens consistently. I don't think a reliable reproduction will be possible. It could be a race condition? |
I've checked. The popover content appears in the DOM, but the |
I've traced it into rc-trigger where the |
I provided what I believe is a fix at react-component/align#86 for the ticket I reported at react-component/align#85 -- does anybody have connections to the maintainer of that component? |
Damn it, here is a dummy "reproduction example" to satisfy the bot and maybe get the label removed: https://codesandbox.io/s/antd-reproduction-template-forked-9li3k It doesn't show the issue, because the issue is a race condition, probably in requestAnimationFrame and some of the async code, and cannot safely be reproduced in a stripped down example, but appears quite often in real, complex applications. Please some dev look at this and/or ping somebody over at react-component/align to merge and release react-component/align#86? |
@afc163 |
This issue is closed because it has been marked as |
FYI my fix was released as |
I can confirm that this is fixed in antd 4.8.4! |
I delete cache, node_module and reinstalling package.json |
Issue is still there for "antd": "^4.17.4", |
I am also facing this issue with the v4.24.8. Any help will be really appreciated. |
I am facing the issue also on v4.24.14 version, as a workaround I am including the css. .ant-select-dropdown {
z-index: 1700 !important;
} |
Reproduction link
htttp://codesandbox.com
Steps to reproduce
Check image link (https://ibb.co/qNgfB8t)
What is expected?
Select dropdown should open
What is actually happening?
When I click select as you can see on the image: https://ibb.co/qNgfB8t,
the dropdown isn't shown immediately, rather it is shown afterwards, when I click second time on a different place on screen.
Any ideas what can be wrong?
Sorry I don't have reproducible example, even in my code this happens sometimes.
PS It doesn't matter if the options are already loaded or not (usually I load them asynchronously), this has happened
also when I clicked after the options were loaded. And if the options weren't loaded, it still had to display the "no data" dialog
timely.
The text was updated successfully, but these errors were encountered: