Skip to content

Commit 2957847

Browse files
thykosShchepotin
authored andcommitted
fix(input): datepickers error state
1 parent c1d3065 commit 2957847

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/components/form/date-pickers/date-picker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function DatePickerInputRaw(
6666
slotProps={{
6767
textField: {
6868
helperText: props.error,
69+
error: !!props.error,
6970
InputProps: {
7071
readOnly: props.readOnly,
7172
},

src/components/form/date-pickers/date-time-picker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function DateTimePickerInputRaw(
6666
slotProps={{
6767
textField: {
6868
helperText: props.error,
69+
error: !!props.error,
6970
InputProps: {
7071
readOnly: props.readOnly,
7172
},

src/components/form/date-pickers/time-picker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function TimePickerInputRaw(
7070
slotProps={{
7171
textField: {
7272
helperText: props.error,
73+
error: !!props.error,
7374
InputProps: {
7475
readOnly: props.readOnly,
7576
},

0 commit comments

Comments
 (0)