We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function App() { const onChange = (value) => { console.log(value); console.log(value && value.format('YYYY-MM-DD')); }; return ( <div className="App"> <div>antd version: {version}</div> <div> <DatePicker onChange={onChange} /> </div> <Button type='primary'>按钮</Button> </div> ); }
手动输入合法值后 onChange 中的第二个 console.log 会报错
onChange
console.log
The text was updated successfully, but these errors were encountered:
可以提供一个可复现的 repo 吗
Sorry, something went wrong.
手动输入合法日期,不要通过 DatePicker 选择即可复现 antd-demo.zip
确认是解析日期时的 bug 将在下个版本修复
Successfully merging a pull request may close this issue.
手动输入合法值后
onChange
中的第二个console.log
会报错The text was updated successfully, but these errors were encountered: