react-tags
react-tags copied to clipboard
Add option to show only suggestions not yet added
ids for suggestions would be helpful. Otherwise a workaround is
_handleFilterSuggestions(query, suggestions) {
return suggestions.filter(suggestion => {
const item = suggestion.toLowerCase();
const tags = this.state.tags.map(tag => tag.text);
return !tags.includes(item) && item.indexOf(query.toLowerCase()) === 0;
});
}
@gorgos Good catch! I agree with you.
Hi, I'm new to open source project. This issue seems doable for me. Can I contribute?
Sure go for it!
I think it's been implemented already. Let me know if I have any misunderstanding. This is my test screenshot.
