Combobox (Autocomplete) Issues with native html form integration #1844
Unanswered
AlexMachin1997
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
So I'm in the process of creating a dropdown with the Combobox component. The integration has been going really well, it was super easy to get all the basic features and some of the more advanced features whilst controlling the input myself.
However, I want to be able to also have the ability to have an uncontrolled version ie not storing the value in state but in formData. Based on the example in the documentation you just need to add the "name" and "defaultValue" though when I've tried adding this to my own component I can't get the dropdown value/s to be displayed you select the value and it just doesn't display it leads to the displayValue being undefined.
Has anyone successfully got the Combobox component working in "uncontrolled" mode with some practical examples ?
If someone has an example which work's in there project I could possibly where I;m going wrong, it seems straightforward so I must be doing something wrong or the code blocks in the docs is incorrect.
Any comments are appreciated 😄
Thank's,
Alex
Beta Was this translation helpful? Give feedback.
All reactions