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

React multiselect defaultValue warning #1344

Closed
abhaykeerthy12 opened this issue Apr 24, 2020 · 2 comments
Closed

React multiselect defaultValue warning #1344

abhaykeerthy12 opened this issue Apr 24, 2020 · 2 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@abhaykeerthy12
Copy link

Hi.. i used the multiselect in this library for testing with the documentation sample but react gives this warning. how to fix this

Use the defaultValue or value props on instead of setting selected on .

@code-blooded-developer
Copy link

@abhaykeerthy12 can you please share the codesandbox of this case so we can verify?

@abhaykeerthy12
Copy link
Author

abhaykeerthy12 commented Apr 24, 2020

@abhaykeerthy12 can you please share the codesandbox of this case so we can verify?

https://codesandbox.io/s/infallible-bird-u71kw?file=/src/App.js

just select an option and you can see the warning

@mertsincan mertsincan self-assigned this Apr 24, 2020
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Apr 24, 2020
@mertsincan mertsincan added this to the 4.2.1 milestone Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants