Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vaibhavarora14 opened this issue Dec 11, 2020 · 3 comments

Comments

@vaibhavarora14
Copy link

vaibhavarora14 commented Dec 11, 2020

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
              />
@msherif988
Copy link

I am getting the same error any fix ?

@vaibhavarora14
Copy link
Author

nope, I have not got any
just ignoring it

@msherif988
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants