diff options
author | Matthew Shao <me@matshao.com> | 2017-07-19 22:24:45 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-07-19 22:24:45 +0800 |
commit | cbf5db9a4ff77440276ca6bb4d395cc5bdee30ad (patch) | |
tree | dc769c0100af7579c6d55dd2b09b700143c0a3ba /web/src/js | |
parent | c2f0b94fb7717aa46f7da27d56bf497efaa747b1 (diff) | |
download | mitmproxy-cbf5db9a4ff77440276ca6bb4d395cc5bdee30ad.tar.gz mitmproxy-cbf5db9a4ff77440276ca6bb4d395cc5bdee30ad.tar.bz2 mitmproxy-cbf5db9a4ff77440276ca6bb4d395cc5bdee30ad.zip |
[web] Fix line breaking in StringSequenceOption.
Diffstat (limited to 'web/src/js')
-rw-r--r-- | web/src/js/components/Modal/Option.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/Modal/Option.jsx b/web/src/js/components/Modal/Option.jsx index 1c7bc2b2..1a847602 100644 --- a/web/src/js/components/Modal/Option.jsx +++ b/web/src/js/components/Modal/Option.jsx @@ -95,7 +95,7 @@ function StringSequenceOption({ value, onChange, ...props }) { return <textarea rows={height} 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} /> } |