Commit 7384aa4f by 姜雷

多行输入过滤换行

parent 77a591b2
...@@ -245,7 +245,9 @@ class PublicCarApply extends Component { ...@@ -245,7 +245,9 @@ class PublicCarApply extends Component {
rows={4} rows={4}
count={50} count={50}
value={lineDescription} value={lineDescription}
onChange={val => this.setState({ lineDescription: val })} onChange={val =>
this.setState({ lineDescription: val.replace(/\n/, '') })
}
/> />
</div> </div>
</div> </div>
......
...@@ -364,7 +364,7 @@ class ReprtRepair extends Component { ...@@ -364,7 +364,7 @@ class ReprtRepair extends Component {
this.setState(({ applyForm }) => ({ this.setState(({ applyForm }) => ({
applyForm: { applyForm: {
...applyForm, ...applyForm,
address: val, address: val.replace(/\n/, ''),
}, },
})) }))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment