i-like-robots/react-tags

How to use "COMMA" and "SPACEBAR" as a delimiter?

gmwill934 opened this issue · 1 comments

Hey

I'm trying to use comma and spacebar as a delimiter but its not letting me. I'm passing an array as prop to the component.

Any ideas?


<ReactTags
                id={label}
                placeholderText=""
                ref={ref}
                tags={allEmails}
                onDelete={onDelete}
                onAddition={onAddition}
                onValidate={validateEmail}
                delimiters={['Spacebar','Enter','Tab','Comma']}
                allowNew
/>

Fixed it with [' ', ',','Tab','Enter']