A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/react-tags/react-tags/issues/949 below:

Remove autocomplete prop · Issue #949 · react-tags/react-tags · GitHub

Currently, we have an autocomplete prop to decide whether to add suggestions irrespective of whether they are selected.
It was added in #39 and has the below behaviour

- `true` - when the delimiter key (such as enter) is pressed, the first matching suggestion is used.
- `1` - when the delimiter key (such as enter) is pressed, the matching suggestion is used only if there is a single matching suggestion
- `false` (default) - tags are not autocompleted on enter/delimiter

As you can see it allows adding tags without selecting them when set to true and when setting the value to 1 it will allow adding only when there is one matching suggestion.

These behaviours are very specific to the host app and not intuitive as well. We should allow adding tags only when explicitly selected and hence will be removing this prop in 7.x

To ease the above process, we can introduce a new prop may be which decides whether to auto select the first matching suggestion when typing.

Thoughts welcome :) 🙏🏻


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4