Skip to content

Commit 384787a

Browse files
committed
Merge branch 'bugfix/rc5-feedback' into feature/datepicker-portals
2 parents 5f3f08d + 5f76332 commit 384787a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dash-core-components/src/fragments/DatePickerRange.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ const DatePickerRange = ({
336336
id={start_date_id || accessibleId}
337337
inputClassName="dash-datepicker-input dash-datepicker-start-date"
338338
value={startInputValue}
339-
onChange={e => setStartInputValue(e.target.value)}
339+
onChange={e => setStartInputValue(e.target?.value)}
340340
onKeyDown={handleStartInputKeyDown}
341341
onFocus={() => {
342342
if (isCalendarOpen) {
@@ -357,7 +357,7 @@ const DatePickerRange = ({
357357
id={end_date_id || accessibleId + '-end-date'}
358358
inputClassName="dash-datepicker-input dash-datepicker-end-date"
359359
value={endInputValue}
360-
onChange={e => setEndInputValue(e.target.value)}
360+
onChange={e => setEndInputValue(e.target?.value)}
361361
onKeyDown={handleEndInputKeyDown}
362362
onFocus={() => {
363363
if (isCalendarOpen) {

components/dash-core-components/src/fragments/DatePickerSingle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const DatePickerSingle = ({
180180
id={accessibleId}
181181
inputClassName="dash-datepicker-input dash-datepicker-end-date"
182182
value={inputValue}
183-
onChange={e => setInputValue(e.target.value)}
183+
onChange={e => setInputValue(e.target?.value)}
184184
onKeyDown={handleInputKeyDown}
185185
placeholder={placeholder}
186186
disabled={disabled}

0 commit comments

Comments
 (0)