File tree 4 files changed +8
-0
lines changed
packages/material-renderers/src/mui-controls
4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const MuiInputInteger = React.memo(function MuiInputInteger(
40
40
id,
41
41
enabled,
42
42
uischema,
43
+ isValid,
43
44
path,
44
45
handleChange,
45
46
config,
@@ -70,6 +71,7 @@ export const MuiInputInteger = React.memo(function MuiInputInteger(
70
71
autoFocus = { appliedUiSchemaOptions . focus }
71
72
inputProps = { inputProps }
72
73
fullWidth = { true }
74
+ error = { ! isValid }
73
75
/>
74
76
) ;
75
77
} ) ;
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
39
39
id,
40
40
enabled,
41
41
uischema,
42
+ isValid,
42
43
path,
43
44
handleChange,
44
45
config,
@@ -68,6 +69,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
68
69
autoFocus = { appliedUiSchemaOptions . focus }
69
70
inputProps = { inputProps }
70
71
fullWidth = { true }
72
+ error = { ! isValid }
71
73
/>
72
74
) ;
73
75
} ) ;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
36
36
id,
37
37
enabled,
38
38
uischema,
39
+ isValid,
39
40
path,
40
41
handleChange,
41
42
config,
@@ -61,6 +62,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
61
62
disabled = { ! enabled }
62
63
autoFocus = { appliedUiSchemaOptions . focus }
63
64
fullWidth = { true }
65
+ error = { ! isValid }
64
66
/>
65
67
) ;
66
68
} ) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const MuiSelect = React.memo(function MuiSelect(
44
44
enabled,
45
45
schema,
46
46
uischema,
47
+ isValid,
47
48
path,
48
49
handleChange,
49
50
options,
@@ -69,6 +70,7 @@ export const MuiSelect = React.memo(function MuiSelect(
69
70
onChange = { ( ev ) => handleChange ( path , ev . target . value || undefined ) }
70
71
fullWidth = { true }
71
72
multiple = { multiple || false }
73
+ error = { ! isValid }
72
74
>
73
75
{ [
74
76
< MenuItem value = { '' } key = 'jsonforms.enum.none' >
You can’t perform that action at this time.
0 commit comments