File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
packages/material-renderers/src/mui-controls Expand file tree Collapse file tree 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(
4040 id,
4141 enabled,
4242 uischema,
43+ isValid,
4344 path,
4445 handleChange,
4546 config,
@@ -70,6 +71,7 @@ export const MuiInputInteger = React.memo(function MuiInputInteger(
7071 autoFocus = { appliedUiSchemaOptions . focus }
7172 inputProps = { inputProps }
7273 fullWidth = { true }
74+ error = { ! isValid }
7375 />
7476 ) ;
7577} ) ;
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
3939 id,
4040 enabled,
4141 uischema,
42+ isValid,
4243 path,
4344 handleChange,
4445 config,
@@ -68,6 +69,7 @@ export const MuiInputNumber = React.memo(function MuiInputNumber(
6869 autoFocus = { appliedUiSchemaOptions . focus }
6970 inputProps = { inputProps }
7071 fullWidth = { true }
72+ error = { ! isValid }
7173 />
7274 ) ;
7375} ) ;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
3636 id,
3737 enabled,
3838 uischema,
39+ isValid,
3940 path,
4041 handleChange,
4142 config,
@@ -61,6 +62,7 @@ export const MuiInputTime = React.memo(function MuiInputTime(
6162 disabled = { ! enabled }
6263 autoFocus = { appliedUiSchemaOptions . focus }
6364 fullWidth = { true }
65+ error = { ! isValid }
6466 />
6567 ) ;
6668} ) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const MuiSelect = React.memo(function MuiSelect(
4444 enabled,
4545 schema,
4646 uischema,
47+ isValid,
4748 path,
4849 handleChange,
4950 options,
@@ -69,6 +70,7 @@ export const MuiSelect = React.memo(function MuiSelect(
6970 onChange = { ( ev ) => handleChange ( path , ev . target . value || undefined ) }
7071 fullWidth = { true }
7172 multiple = { multiple || false }
73+ error = { ! isValid }
7274 >
7375 { [
7476 < MenuItem value = { '' } key = 'jsonforms.enum.none' >
You can’t perform that action at this time.
0 commit comments