react-autosuggest icon indicating copy to clipboard operation
react-autosuggest copied to clipboard

Two feature requests

Open sgentile opened this issue 4 years ago • 6 comments

  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'

sgentile avatar May 16 '20 12:05 sgentile

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

aberezkin avatar Jun 02 '20 10:06 aberezkin

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 .

sgentile avatar Jun 02 '20 22:06 sgentile

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

aberezkin avatar Jun 10 '20 08:06 aberezkin

requesting react hook x2

senter-logistics avatar Jun 10 '20 18:06 senter-logistics

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

sgentile avatar Jun 11 '20 16:06 sgentile

  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.

ninezero90hy avatar Sep 24 '21 19:09 ninezero90hy