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 设置defaultValue 报错 #4147

Closed
alonehover opened this issue Dec 6, 2016 · 4 comments
Closed

RangePicker 设置defaultValue 报错 #4147

alonehover opened this issue Dec 6, 2016 · 4 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@alonehover
Copy link

发生问题的环境是:

  • antd 版本: 2.5.1
  • 操作系统及其版本: macOS 10.12.1
  • 浏览器及其版本: chrome 54.0.2840.98 (64-bit)

您做了什么?请提供尽可能详细的重现步骤。

引入antd 的 RangePicker,并按照官方示例设置了默认值

您期待的结果是:

像官网一样正常显示默认值

实际上的结果是:

浏览器控制台报错

bundle.js:52856 Uncaught Error: The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`

可重现的在线演示

http://codepen.io/anon/pen/yVKRxM?editors=0010

@benjycui benjycui added the 🐛 Bug Ant Design Team had proved that this is a bug. label Dec 6, 2016
@benjycui
Copy link
Contributor

benjycui commented Dec 6, 2016

你直接使用 dist/antd.js 是么?

@sangxiaolong
Copy link

2.5.1版本的依然报错啊

The value/defaultValue of RangePicker must be a moment object array after antd@2.0

@benjycui
Copy link
Contributor

benjycui commented Dec 8, 2016

等待 2.5.2

上面的修改还么发布。

@lock
Copy link

lock bot commented May 3, 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 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants