Skip to content

Commit f75c205

Browse files
committed
fix(DatePicker, DateRangePicker): TimePicker does not update when a date is entered via the input field
1 parent a3d80bf commit f75c205

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

js/src/date-range-picker.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ class DateRangePicker extends BaseComponent {
405405
this._startDate = formatedDate
406406
this._calendar.update(this._getCalendarConfig())
407407

408+
if (this._timePickerStart) {
409+
this._timePickerStart.update(this._getTimePickerConfig(true))
410+
}
411+
408412
EventHandler.trigger(this._element, EVENT_START_DATE_CHANGE, {
409413
date: formatedDate
410414
})
@@ -463,6 +467,10 @@ class DateRangePicker extends BaseComponent {
463467
this._endDate = formatedDate
464468
this._calendar.update(this._getCalendarConfig())
465469

470+
if (this._timePickerEnd) {
471+
this._timePickerEnd.update(this._getTimePickerConfig(false))
472+
}
473+
466474
EventHandler.trigger(this._element, EVENT_END_DATE_CHANGE, {
467475
date: formatedDate
468476
})

0 commit comments

Comments
 (0)