瀏覽代碼

常用选中状态bug修改2971

zhouna 5 年之前
父節點
當前提交
dd0de4b4ac
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/components/CommonSymptom/index.jsx

+ 5 - 0
src/components/CommonSymptom/index.jsx

@@ -63,6 +63,11 @@ class CommonSymptom extends Component{
       conceptId
     })
   }
+  componentWillReceiveProps(next){
+    if(next.show!==this.props.show){
+      this.handleClear();
+    }
+  }
   getStyle(id){
     const {conceptId} = this.state;
     if(conceptId.includes(id)){