From 182445f68ca03beb95a90e57867f356fe155126b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 13 十一月 2021 21:14:23 +0800
Subject: [PATCH] 2021-11-13

---
 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