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

DatePicker showTime 参数不起作用 #3123

Closed
qubaomingg opened this issue Sep 22, 2016 · 1 comment · Fixed by #3162
Closed

DatePicker showTime 参数不起作用 #3123

qubaomingg opened this issue Sep 22, 2016 · 1 comment · Fixed by #3162
Assignees

Comments

@qubaomingg
Copy link

发生问题的环境是:

  • antd 版本: 1.10.0
  • 操作系统及其版本: Mac OS
  • 浏览器及其版本: Chrome 52.0

您做了什么?

<DatePicker showTime={{format: "HH:mm"}} />

您期待的结果是:

DatePicker选择时间时不会显示秒。

实际上的结果是:

DatePicker选择时间后还是有秒,并且showTime传入的propsTimePicker都不起作用。

可重现的在线演示

分析原因

发现是使用的Calendar覆盖了我们传入的showTime showSecond.

refer bug: react-component/calendar#157

@lock
Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants