File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,14 @@ class DateRangePicker extends Picker {
189
189
190
190
update ( config ) {
191
191
this . _config = this . _getConfig ( config )
192
- this . _element . innerHTML = ''
192
+ this . _calendarDate = this . _convertStringToDate ( this . _config . calendarDate || this . _config . date || this . _config . startDate || new Date ( ) )
193
+ this . _startDate = this . _convertStringToDate ( this . _config . date || this . _config . startDate )
194
+ this . _endDate = this . _convertStringToDate ( this . _config . endDate )
195
+ this . _selectEndDate = this . _config . selectEndDate
196
+
197
+ this . _dropdownToggleEl . innerHTML = ''
198
+ this . _dropdownMenuEl . innerHTML = ''
199
+
193
200
this . _createDateRangePicker ( )
194
201
this . _createCalendars ( )
195
202
this . _addEventListeners ( )
@@ -214,8 +221,6 @@ class DateRangePicker extends Picker {
214
221
parseISO ( event . target . value ) :
215
222
getLocalDateFromString ( event . target . value , this . _config . locale , this . _config . timepicker )
216
223
217
- // eslint-disable-next-line no-console
218
- console . log ( parseISO ( event . target . value ) )
219
224
if ( date instanceof Date && date . getTime ( ) ) {
220
225
this . _startDate = date
221
226
this . _calendarDate = date
You can’t perform that action at this time.
0 commit comments