moroshko / react-autosuggest

WAI-ARIA compliant React autosuggest component
http://react-autosuggest.js.org
MIT License
5.97k stars 586 forks source link

Two feature requests #744

Open sgentile opened 4 years ago

sgentile commented 4 years ago
  1. need to provide a ref to the underlying input so it can be used with something like react hook forms easily for validation
  2. would like an option for a 'forced selection'
aberezkin commented 4 years ago

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'?

sgentile commented 4 years ago

You can type anything in - I mean requires a selection

On Tue, Jun 2, 2020, 6:37 AM Arkadii Berezkin notifications@github.com 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 .

aberezkin commented 4 years ago

Can't quite understand what you mean. Can you provide an example?

senter-logistics commented 4 years ago

requesting react hook x2

sgentile commented 4 years ago

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

ninezero90hy commented 2 years ago
  1. would like an option for a 'forced selection'

@aberezkin For example https://ant.design/components/select

스크린샷 2021-09-25 오전 4 29 27

From my experience, In many cases, this function was desired.

But I think it's going to be a difficult task.