react-tags icon indicating copy to clipboard operation
react-tags copied to clipboard

Add option to show only suggestions not yet added

Open gorgos opened this issue 8 years ago • 4 comments

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 avatar May 12 '17 11:05 gorgos

@gorgos Good catch! I agree with you.

hoantran-it avatar Aug 10 '17 07:08 hoantran-it

Hi, I'm new to open source project. This issue seems doable for me. Can I contribute?

Genne23v avatar Oct 07 '22 13:10 Genne23v

Sure go for it!

ad1992 avatar Oct 07 '22 15:10 ad1992

I think it's been implemented already. Let me know if I have any misunderstanding. This is my test screenshot. Screen Shot 2022-10-13 at 12 03 13 AM

Genne23v avatar Oct 13 '22 04:10 Genne23v