[Autocomplete] inputValue is always undefined in the renderOption prop #18254
Labels
bug 🐛
Something doesn't work
component: autocomplete
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
Current Behavior 😯
In the
renderOption
prop, the second parameter's key,inputValue
, is always sent asundefined
.Expected Behavior 🤔
In the
renderOption
prop, the second parameter's key,inputValue
, should be the text the user entered in the input field.Steps to Reproduce 🕹
https://codesandbox.io/s/material-demo-8q8zf?fontsize=14
Steps:
inputValue
is alwaysundefined
.Context 🔦
I'm trying to implement the
Highlights
behaviour described in the documentation: https://material-ui.com/components/autocomplete/#highlights.Your Environment 🌎
The text was updated successfully, but these errors were encountered: