question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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}
            />

screen shot 2016-07-14 at 2 00 05 pm

antd 版本 1.6.2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
infengcommented, Oct 24, 2016

@zzzzxiao 可以暂时通过DatePicker的defaultPickerValue属性来设置起始时间和结束时间

0reactions
lock[bot]commented, May 23, 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found