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
Select Multiple does not show options #18840
Comments
onChange = value => {
console.log(value);
+ this.setState({ value });
}; |
Hi! Thanks for your response. Maybe I think that I was not clear about the issue. The problem is when I write on the input the handleSearch method is dispatched, but then, the render method is executed again but the option items are not displayed into the Select component. Even though, when I list the options into the select with key={it.name} the options are displayed. Maybe I am wrong but I spect the same behavior in both cases. I will try to illustrate the issue. Expected behavior https://www.loom.com/share/1a1cfe82de784912a85c983eddb3c237 Select bug |
@lcorniglione You should use |
@oceandrama Thank for your response! That did the trick! |
Reproduction link
Steps to reproduce
Type on select and wait until settimeout resolve the callback. You will see that the option is not displayed into the select.
What is expected?
See the option rendered into the select.
What is actually happening?
The option does not appear.
If I change the key of the option to key={it.name} the option is displayed, but I need the id as the key of the option.
The text was updated successfully, but these errors were encountered: