Material-ui: AutoComplete with InputBase Not Work

Created on 12 Nov 2019  路  2Comments  路  Source: mui-org/material-ui

  • [ ] The issue is present in the latest release.
  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 馃槸

Are there examples of autocomplete with InputBase?
Before that I used @ material-ui / core 4.6.0 "and @ material-ui / lab 4.0.0-alpha.31", and it worked fine, but after I updated it to mui core 4.6.1 and mui lab 4.0 .0-alpha.32, uses autocomplete with InputBase so it doesn't work at all. Please help

| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.6.1 |
| React | v16.11.0 |
| material-ui/lab | v4.0.0-alpha.32 |

Autocomplete discussion

Most helpful comment

<TextField
  renderInput={params => (
    <InputBase
-     ref={params.ref}
+     ref={params.InputProps.ref}
      inputProps={params.inputProps}
    />
  )}
/>

All 2 comments

@setyawanandik Thanks for the feedback, I have added this breaking change in the release description https://github.com/mui-org/material-ui/releases/tag/v4.6.1.

Keep in mind that the lab is in a never-ending alpha state, we might release breaking changes between two versions if it's required to improve the component.

<TextField
  renderInput={params => (
    <InputBase
-     ref={params.ref}
+     ref={params.InputProps.ref}
      inputProps={params.inputProps}
    />
  )}
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

reflog picture reflog  路  3Comments

ghost picture ghost  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

ericraffin picture ericraffin  路  3Comments

newoga picture newoga  路  3Comments