浏览代码

走慢病否,现病史消失滚动才出现bug修改2081

zhouna 5 年之前
父节点
当前提交
4433155d2e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/CurrentIll/index.jsx

+ 3 - 3
src/components/CurrentIll/index.jsx

@@ -115,11 +115,11 @@ class CurrentIll extends Component{
     } 
   }
   componentWillReceiveProps(nextProps){
-    const contHeightDiff =  nextProps.data&&this.props.data&&nextProps.data.length!==this.props.data.length;
+    /*const contHeightDiff =  nextProps.data&&this.props.data&&nextProps.data.length!==this.props.data.length;
     const dataDiff = !!nextProps.data!==!!this.props.data;
-    if(contHeightDiff||dataDiff){
+    if(contHeightDiff||dataDiff){*/     //走慢病否,现病史消失滚动才出现bug修改
       this.context.scrollArea.refresh();
-    }
+    //}
   }
   render(){
     const {hasMain,readMode,fuzhen,isChronic,type,fetchPushInfos,handleInput,isRead,saveText,searchData,totalHide,editClear,data} = this.props;