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

自定义日期范围选择disabledDate状态下会默认选择当前时间 #15015

Closed
1 task
helloworldhzx opened this issue Feb 22, 2019 · 5 comments
Closed
1 task

Comments

@helloworldhzx
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://ant.design/components/date-picker-cn/#components-date-picker-demo-start-end

Steps to reproduce

1、end时间组件选择今日之前的日期。
2、start时间组件的输入框里输入今日之后的日期

What is expected?

start时间组件的值应为空

What is actually happening?

值默认为当前时间, 当前时间为不可选择

Environment Info
antd 3.13.4
React
System
Browser
@Yangzhedi
Copy link
Contributor

the start TimePicker defaultValue is same as end TimePicker. Is there any thing wrong?

image

@helloworldhzx
Copy link
Author

_20190223174455
start时间比end时间迟

@Yangzhedi
Copy link
Contributor

提一个sandbox连接?我在官网没有复现

@helloworldhzx
Copy link
Author

提一个sandbox连接?我在官网没有复现

上面的图就是刚在官网截得, 先end组件选择2019-02-01,之后在start组件输入(不是选择,是输入框)
image
回车之后会变成当前时间

@zombieJ
Copy link
Member

zombieJ commented Feb 23, 2019

https://codesandbox.io/s/v39r5m53o3
输入不允许的日期会被转成今日,这个的确是个 bug。

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

4 participants