From 6c66c9c2a6d0f7e7ccc65d4d9e478f1acb74d87e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 20 八月 2021 12:12:48 +0800
Subject: [PATCH] 2021-08-20

---
 src/tabviews/zshare/topSearch/advanceform/index.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/advanceform/index.jsx b/src/tabviews/zshare/topSearch/advanceform/index.jsx
index dd07f57..9a9f6d9 100644
--- a/src/tabviews/zshare/topSearch/advanceform/index.jsx
+++ b/src/tabviews/zshare/topSearch/advanceform/index.jsx
@@ -43,9 +43,9 @@
 
       if (item.type === 'text') {
         if (item.inputType === 'search') {
-          content = <Search placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onSearch={this.handleSubmit} enterButton/>
+          content = <Search allowClear placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onSearch={this.handleSubmit} enterButton/>
         } else {
-          content = <Input placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onPressEnter={this.handleSubmit} />
+          content = <Input allowClear placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onPressEnter={this.handleSubmit} />
         }
       } else if (item.type === 'select' || item.type === 'link' || item.type === 'multiselect') {
         content = (<MKSelect config={item}/>)
@@ -72,7 +72,8 @@
     return fields
   }
 
-  handleSubmit = () => {
+  handleSubmit = (e) => {
+    e.stopPropagation()
     // 鍥炶溅鎴栫偣鍑绘悳绱�
     this.props.form.validateFields((err, values) => {
       if (err) return

--
Gitblit v1.8.0