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

AsyncSelect uncontrolled input to be controlled #4344

Closed
lukasa1993 opened this issue Dec 24, 2020 · 1 comment
Closed

AsyncSelect uncontrolled input to be controlled #4344

lukasa1993 opened this issue Dec 24, 2020 · 1 comment

Comments

@lukasa1993
Copy link

Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components

when providing value prop for AsyncSelect i get this error, my goal is to prepopulate async select maybe i am doing it wrongly but error still shouldn't be

@Rall3n
Copy link
Collaborator

Rall3n commented Dec 24, 2020

Hello @lukasa1993,

Would you be so kind and provide a minimal reproducible example?

I have a hunch what your problem is, but I need to see your code to confirm my suspicions.

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