bevacqua/horsey

Disallow input values if not in the provided suggestions

mrmartineau opened this issue · 1 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.