React Tags ignores suggestions unless it matches from the first character
muyiwaoyeniyi opened this issue ยท 4 comments
muyiwaoyeniyi commented
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
Your environment
- OS: Ubuntu 18.04
- Browser: Chrome 84
- Version of the component: 6.0.0
- React version: 16.9.0
i-like-robots commented
The default suggestions filter can be overridden using the suggestionsFilter
option.
muyiwaoyeniyi commented
@i-like-robots That worked. I simply sent in a function that returned true and it matched/highlighted correctly.
const suggestionsFilter = () => true;
Thanks!
i-like-robots commented
Glad your problem is sorted ๐
muyiwaoyeniyi commented
Thanks!