i-like-robots / react-tag-autocomplete

⚛️ A simple, accessible, tagging component ready to drop into your React projects (new repo)
https://i-like-robots.github.io/react-tag-autocomplete/
ISC License
178 stars 12 forks source link

DelimiterKeys is not working #57

Closed Vincent59 closed 1 year ago

Vincent59 commented 1 year ago

Hello there!

I don't know if it's just me but the 'delimiterKeys' don't seem to work. My code is looking like this:

 <ReactTags
    allowNew
    labelText="Tags:"
    selected={selectedTag}
    suggestions={[]}
    onAdd={onAdd}
    onDelete={onDelete}
    delimiterKeys={["Enter"]}
    noOptionsText="No matching tags"
    newOptionText={`Add Tag ${newTageName}`}
    onInput={((e) => setNewTageName(e))}
  />

When i press 'Enter', nothing happens. On the demo, it just work when you type the full tag name found in suggestions.

i-like-robots commented 1 year ago

I'm not aware of any issue with the delimiterKeys option, if you do find one then please do include a reproducible example for me to take a look at.