mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
[web] Fix line breaking in StringSequenceOption.
This commit is contained in:
parent
c2f0b94fb7
commit
cbf5db9a4f
@ -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}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user