i-like-robots/react-tags

React Tags ignores suggestions unless it matches from the first character

muyiwaoyeniyi opened this issue ยท 4 comments

Your issue may already be reported! Please search on the issue tracker before creating one.

Expected behaviour

All suggestions should be rendered regardless of if the match was from the first character.

Current behaviour

If you search for a tag and the suggestions don't start with that text, suggestions are not rendered. Though it seems for work for each word in the text.

Example and screenshots

screenshot1
screenshot2
screenshot3

Your environment

  • OS: Ubuntu 18.04
  • Browser: Chrome 84
  • Version of the component: 6.0.0
  • React version: 16.9.0

The default suggestions filter can be overridden using the suggestionsFilter option.

@i-like-robots That worked. I simply sent in a function that returned true and it matched/highlighted correctly.

const suggestionsFilter = () => true;

Thanks!

Glad your problem is sorted ๐Ÿ‘

Thanks!