Merge pull request #460 from urbit/m/multi-mail
input: allow pasting comma-separated email lists
commitf229e7f645bb7e1863a6cecafca045f5c7380644
authorFang <git@fang.io>
dateSat 9 May 2020, 00:24 (6 years ago)
parent984888782bc25f
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(/[\n\t, ]+/));
4545 setValue('');
4646 }, [value, fields, setValue]);
4747