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 无法正确手动填写开始时间 #6999

Closed
phxsuns opened this issue Jul 29, 2017 · 8 comments
Closed

RangePicker 无法正确手动填写开始时间 #6999

phxsuns opened this issue Jul 29, 2017 · 8 comments
Assignees

Comments

@phxsuns
Copy link

@phxsuns phxsuns commented Jul 29, 2017

Version

2.12.2

Environment

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Reproduction link

https://ant.design/components/date-picker-cn/

Steps to reproduce

直接看官网示例。RangePicker的开始时间输入框,输入到符合format的时间时,就会清空输入框,非常奇怪。

What is expected?

用户可以正确手动输入开始时间,并最终效果和从日历上选一样。

What is actually happening?

开始时间框输入符合format格式的时间时,会被清空。

@ant-design-bot
Copy link
Contributor

@ant-design-bot ant-design-bot commented Jul 29, 2017

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@benjycui
Copy link
Contributor

@benjycui benjycui commented Jul 31, 2017

cc @paranoidjk

rc-calendar 这层好像就有问题了 http://react-component.github.io/calendar/examples/antd-range-calendar.html

输入没法选择时间,但是点击可以。

@comeriven
Copy link

@comeriven comeriven commented Jul 31, 2017

I also encountered this bug in the development process.
Best regards

@comeriven
Copy link

@comeriven comeriven commented Aug 1, 2017

也许有人能解决这个问题?

@Witee
Copy link

@Witee Witee commented Aug 1, 2017

我发现使用 defaultValue 时显示是对的,但实际选中的还是默认的,好奇怪

@paranoidjk
Copy link
Contributor

@paranoidjk paranoidjk commented Aug 1, 2017

@benjycui 这是要自己实现的.. https://github.com/react-component/calendar/blob/master/examples/antd-range-calendar.js#L165 demo 只处理了显示,没有处理输入更新

@benjycui
Copy link
Contributor

@benjycui benjycui commented Aug 3, 2017

@Frank1e0927
Copy link

@Frank1e0927 Frank1e0927 commented Sep 28, 2017

相同的问题,现在也遇到了,看了一下antd官网,似乎还没有进行修复。希望尽早修复。

@yesmeck yesmeck removed the Invalid label Oct 26, 2017
yesmeck added a commit that referenced this issue Jan 18, 2018
yesmeck added a commit that referenced this issue Jan 20, 2018
yesmeck added a commit that referenced this issue Jan 26, 2018
yesmeck added a commit that referenced this issue Jan 26, 2018
@yesmeck yesmeck closed this in 842c7f2 Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants