Can not use showTime[defaultValue] in RangePicker
See original GitHub issue使用 showTime 设置 TimePicker 的 defaultValue 后 console 报错
<RangePicker style={widthStyle}
locale={enUS}
showTime={{
format: 'HH:mm',
defaultValue: '00:00:00'
}}
format="yyyy/MM/dd HH:mm"
onChange={this.changeDateRange}
/>
antd 版本 1.6.2
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (13 by maintainers)
Top Results From Across the Web
Component `DatePicker` showTime.defaultValue need to be 0 ...
when i use shotTime.defaultValue , the pick time button will show. so i need transform all values returned by DatePicker or RangePicker ....
Read more >defaultValue of showTime attribute in antd datePicker couldn't ...
And I have no problem with my onChange functionality. It is working perfect. The date/time change code wise working as expected. It is...
Read more >DatePicker - Ant Design
When To Use. By clicking the input box, you can select a date from a popup calendar. ... Set range picker type by...
Read more >This is why I will not use the DateRangePicker - Telerik
First, when the range open, the 2 calendars are always based on the current day, not the range start / end. We see...
Read more >Date Picker Dialog Example | APG | WAI - W3C
When the dialog is opened, if the input field is empty, or does not contain a valid date, then the current date is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zzzzxiao 可以暂时通过DatePicker的defaultPickerValue属性来设置起始时间和结束时间
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.