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
Calendar 日历组件 怎么点击非当前月日期的时候,让面板不跳转呢。 #48394
Comments
Hello @JimWang-happy. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by 你好 @JimWang-happy,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.x 或 antd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。 |
https://stackblitz.com/edit/react-yvn9pk-fstu5s?file=demo.tsx |
出现两个 PopOver 是因为没有显示传入 open=false (demo传入的是undefined)😂 可以用 disabledDate 禁用其他月份的日期(禁用跳转)
|
好的,谢谢!第一个问题竟然是没显示传 false 。。。 |
试试这个 我魔改了下,后面我问问大佬们,要不要支持点击不跳转 😶🌫️
|
冒泡改一下就行了
|
好的,感谢,想让 popover 受控好像又有问题了呢😂 |
|
为啥阻止下冒泡就行了呢🤔 |
What problem does this feature solve?
给每个日期框添加 PopOver 时,面板跳转会导致 PopOver位置不对,即时可以通过代码控制,也会出现同时出现两个 PopOver,因为日期作为key
What does the proposed API look like?
改为属性可配置
是否跟这条更新有关,#47361
The text was updated successfully, but these errors were encountered: