mui-treasury icon indicating copy to clipboard operation
mui-treasury copied to clipboard

Error: Material-UI: The key `adornedStart` provided to the classes prop is not implemented in ForwardRef(Input).

Open vaibhavarora14 opened this issue 4 years ago • 3 comments

Error Screenshot - image

Complete error message

Material-UI: The key `adornedStart` provided to the classes prop is not implemented in ForwardRef(Input).
You can only override one of the following: root,formControl,focused,disabled,colorSecondary,underline,error,marginDense,multiline,fullWidth,input,inputMarginDense,inputMultiline,inputTypeSearch.

Code sample used -

const inputBaseStyles = roundTextFieldStylesHook.useInputBase();
  const inputLabelStyles = roundTextFieldStylesHook.useInputLabel();


<TextField
                placeholder={'Search'}
                margin={'dense'}
                autoFocus
                InputLabelProps={{ shrink: true, classes: inputLabelStyles }}
                value={searchInput}
                InputProps={{
                  classes: inputBaseStyles,
                  disableUnderline: true,
                  startAdornment: (
                    <Box className={classes.searchIcon}>
                      <SearchIcon color="inherit" />
                    </Box>
                  ),
                  endAdornment: (
                    <>
                        <IconButton
                          className={classes.searchIcon}
                        >
                          <CancelIcon color="inherit" />
                        </IconButton>
                    </>
                  ),
                }}
                fullWidth
              />

vaibhavarora14 avatar Dec 11 '20 17:12 vaibhavarora14

I am getting the same error any fix ?

msherif988 avatar Mar 19 '21 09:03 msherif988

nope, I have not got any just ignoring it

vaibhavarora14 avatar Mar 19 '21 11:03 vaibhavarora14

InputProps={{ classes: { ...inputBaseStyles, adornedEnd: null, adornedStart: null }, disableUnderline: true, }} add this to your InputProps its working for me

msherif988 avatar Mar 19 '21 12:03 msherif988