react-autosuggest
react-autosuggest copied to clipboard
Two feature requests
- need to provide a ref to the underlying input so it can be used with something like react hook forms easily for validation
- would like an option for a 'forced selection'
You can pass your own ref to the input using inoutProps
in the latest version.
Can you please explain do you mean by 'forced selection'?
You can type anything in - I mean requires a selection
On Tue, Jun 2, 2020, 6:37 AM Arkadii Berezkin [email protected] wrote:
You can pass your own ref to the input using inoutProps in the latest version.
Can you please explain do you mean by 'forced selection'?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/moroshko/react-autosuggest/issues/744#issuecomment-637450811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABAKNDYAC4QZ4AMXJIWY6TRUTI6LANCNFSM4NC5BXDA .
Can't quite understand what you mean. Can you provide an example?
requesting react hook x2
let me better description.
Let's say you want a autocomplete with a list of countries in a dropdown. The user needs to select a country.
In your examples, i can type anything in and nothing is then validating I actually selected a country
- would like an option for a 'forced selection'
@aberezkin For example https://ant.design/components/select
From my experience, In many cases, this function was desired.
But I think it's going to be a difficult task.