File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/components/CustomInput Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ export default function CustomInput(props) {
4040 const marginTop = classNames ( {
4141 [ classes . marginTop ] : labelText === undefined ,
4242 } ) ;
43+ let newInputProps = {
44+ maxLength :
45+ inputProps && inputProps . maxLength ? inputProps . maxLength : undefined ,
46+ minLength :
47+ inputProps && inputProps . minLength ? inputProps . minLength : undefined ,
48+ step : inputProps && inputProps . step ? inputProps . step : undefined ,
49+ } ;
4350 return (
4451 < FormControl
4552 { ...formControlProps }
@@ -62,6 +69,7 @@ export default function CustomInput(props) {
6269 } }
6370 id = { id }
6471 { ...inputProps }
72+ inputProps = { newInputProps }
6573 />
6674 { error ? (
6775 < Clear className = { classes . feedback + " " + classes . labelRootError } />
You can’t perform that action at this time.
0 commit comments