Skip to content
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

RangePicker组件picker为month,value有默认值和没有默认值的时候,disableDate设置的是否可选月份有差别。 #48835

Closed
xuechao215 opened this issue May 9, 2024 · 2 comments

Comments

@xuechao215
Copy link

Reproduction link

Edit on StackBlitz

Steps to reproduce

value设置为当前月和设置为[]的时候,可选月份不一样

What is expected?

当value有默认值的时候,选择了月份后可以选择当前月份不超过2个月的月份

What is actually happening?

当value为空的时候可以,value有值的时候最大可选月份就会少一个月

Environment Info
antd 5.15.4
React 18.2.0
System mac
Browser chrome
Copy link

stackblitz bot commented May 9, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@zombieJ
Copy link
Member

zombieJ commented May 9, 2024

duplicated of #48590 (comment)

看来怎么给月份做对比得写个 Demo 到文档里……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants