[web] Fix line breaking in StringSequenceOption.

This commit is contained in:
Matthew Shao 2017-07-19 22:24:45 +08:00
parent c2f0b94fb7
commit cbf5db9a4f

View File

@ -95,7 +95,7 @@ function StringSequenceOption({ value, onChange, ...props }) {
return <textarea return <textarea
rows={height} rows={height}
value={value.join('\n')} value={value.join('\n')}
onChange={e => onChange(e.target.value.split("\n").filter(x => x.trim()))} onChange={e => onChange(e.target.value.split("\n"))}
{...props} {...props}
/> />
} }