File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/mui-component-mapper/src/form-fields Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import Paper from '@material-ui/core/Paper';
10
10
import Chip from '@material-ui/core/Chip' ;
11
11
import MenuItem from '@material-ui/core/MenuItem' ;
12
12
import CancelIcon from '@material-ui/icons/Cancel' ;
13
+ import Grid from '@material-ui/core/Grid' ;
14
+ import FormGroup from '@material-ui/core/FormGroup' ;
15
+ import FormControl from '@material-ui/core/FormControl' ;
16
+ import FormHelperText from '@material-ui/core/FormHelperText' ;
13
17
14
18
const useStyles = makeStyles ( theme => ( {
15
19
root : {
@@ -318,8 +322,9 @@ function IntegrationReactSelect (props) {
318
322
} ,
319
323
} ) ,
320
324
} ;
325
+
321
326
return (
322
- < div className = { classes . root } >
327
+ < React . Fragment >
323
328
< NoSsr >
324
329
< Select
325
330
classes = { classes }
@@ -330,7 +335,10 @@ function IntegrationReactSelect (props) {
330
335
isDisabled = { ! ! rest . isDisabled }
331
336
/>
332
337
</ NoSsr >
333
- </ div >
338
+ < FormControl required = { rest . isRequired } error = { ! ! invalid } component = "fieldset" >
339
+ { ( invalid || rest . helperText || rest . description ) && < FormHelperText > { invalid || rest . helperText || rest . description } </ FormHelperText > }
340
+ </ FormControl >
341
+ </ React . Fragment >
334
342
) ;
335
343
}
336
344
You can’t perform that action at this time.
0 commit comments