liucf пре 6 година
родитељ
комит
9e9dd567f0
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/components/MainSuit/index.jsx

+ 4 - 4
src/components/MainSuit/index.jsx

@@ -249,16 +249,16 @@ class MainSuit extends Component{
       }
     }
     // 延时关闭常见症状下拉、清空搜索结果,不延时会影响选中
-      clearTimeout(this.state.clearTimer);
+      // clearTimeout(this.state.clearTimer);
       const clearTimer = setTimeout(function(){
         clearSearch && clearSearch();
         // that.setState({
         //   symptom:false
         // })
       },config.delayTime-200);
-      this.setState({
-        clearTimer
-      });  
+      // this.setState({
+      //   clearTimer
+      // });  
   }