Browse Source

Merge remote-tracking branch 'origin/dev/otherHis' into dev/new1

zhouna 6 years atrás
parent
commit
aafa24107e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/components/Textarea/index.jsx

+ 1 - 1
src/common/components/Textarea/index.jsx

@@ -86,7 +86,7 @@ class Textarea extends Component {
   }
   componentWillReceiveProps(next){
     const isRead = this.props.isRead;
-    if(next.isRead != isRead||(next.value!=this.props.value&&next.value.indexOf("复诊")!=-1)){    //value对比解决复诊不显示bug,复诊对比解决关标跳到前面bug
+    if(next.isRead != isRead||(next.value!=this.props.value&&next.value&&next.value.indexOf("复诊")!=-1)){    //value对比解决复诊不显示bug,复诊对比解决关标跳到前面bug
       this.$dom.current.innerText?(this.$dom.current.innerText = next.value||''):(this.$dom.current.innerHTML = next.value||'');
     }
   }