bevacqua / horsey

:horse: Progressive and customizable autocomplete component

Home Page:https://bevacqua.github.io/horsey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disallow input values if not in the provided suggestions

mrmartineau opened this issue · comments

Is it possible to disallow input values if not in the provided suggestions? I see there is a .filter() method but I don't think I want to overwrite the default functionality, is that what I should use? Does anyone have any idea how to achieve this?

If my suggestions were like this:

suggestions: ['sports', 'drama', 'romantic comedy', 'science fiction', 'thriller']

and a user tried to add action as a field value, I would like to disallow that.

See free option.