From cb8c83978177a8d3de769fca12d2aa3642eb0275 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 16 十一月 2021 12:42:32 +0800 Subject: [PATCH] 2021-11-16 --- src/templates/zshare/pasteform/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/templates/zshare/pasteform/index.jsx b/src/templates/zshare/pasteform/index.jsx index b6c1af9..08ed804 100644 --- a/src/templates/zshare/pasteform/index.jsx +++ b/src/templates/zshare/pasteform/index.jsx @@ -49,6 +49,14 @@ }) } + submit = () => { + if (this.props.inputSubmit) { + setTimeout(() => { + this.props.inputSubmit() + }, 10) + } + } + render() { const { getFieldDecorator } = this.props.form const formItemLayout = { @@ -74,7 +82,7 @@ message: '璇疯緭鍏ラ厤缃俊鎭�!' } ] - })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={() => this.props.inputSubmit && this.props.inputSubmit()}/>)} + })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={this.submit}/>)} </Form.Item> </Col> </Row> -- Gitblit v1.8.0