on master help sign in
input: allow pasting comma-separated email lists
commit9b33828f3f26f3d6f5ca93760705819b67b7b1b5 authorFang <git@fang.io> dateFri 8 May 2020, 21:45 (6 years ago) parent9848887
1 file changed+1−1
src/form/EmailChipInput.js+1−1
src/form/EmailChipInput.js+1−1
@@ -41,7 +41,7 @@ const EmailChipInput = ({ className, name, label, disabled }) => {
4141 );
4242
4343 const addToChips = useCallback(() => {
44− fields.push(value);
44+ fields.concat(value.split(/[, ]+/));
4545 setValue('');
4646 }, [value, fields, setValue]);
4747