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时的校验问题 #937

Closed
tangshiping opened this issue Nov 9, 2016 · 4 comments
Closed

表单中存在datepicker时的校验问题 #937

tangshiping opened this issue Nov 9, 2016 · 4 comments

Comments

@tangshiping
Copy link

tangshiping commented Nov 9, 2016

ElementUI version

1.0.0-rc.9

OS/Browers version

macOS/Chrome 53

Vue version

2.0.5

Steps to reproduce

直接使用示例中表单校验的代码: http://element.eleme.io/#/component/form

代码中对date1设置初值,如new Date()

先点击“重置”,再点击“立即创建”

What is Expected?

表单中的其它项会提示校验错误

What is actually happening?

校验会停在date1处,后面的项不会提示校验, 查看console信息:

Uncaught TypeError: value.getTime is not a function(…)
  date @ date.js?d7d3:28
QingWei-Li added a commit to QingWei-Li/element that referenced this issue Nov 13, 2016
@liule1988
Copy link

这个问题并没有修复啊

@liule1988
Copy link

代码中对date1设置初值为string时,表单提交时,依然会停在此处,并且报错:value.getTime is not a function

@qiuyaofan
Copy link

我也遇到问题了,直接给date验证设置type="date",初始值转换为时间类型,比如new Date(value)再赋值给表单

@ShawshankLin
Copy link

我设置了type="date"也没有用

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

5 participants