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

Fix date picker range disabled #2125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LuciferHuang
Copy link

bug场景

使用 datetime + range 时,最小范围允许一小时。在起始日期选择好之后,结束日期无法选择当天。

例如:我选择了起始时间为 07-10 00:00:00,那么实际上能选择的范围应该是大于 07-10 01:00 的时间段,实际表现是 07-10 这一天无法选取

原因

Day.tsx 中日期取的 00:00:00 的时间进行是否禁用当天的逻辑判断,导致07-10整天都被禁用了

解决方案

在 Day.tsx 增加判断当天小时的逻辑,当天存在可选择的时间就不禁用当天

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

Successfully merging this pull request may close these issues.

1 participant