Sfoglia il codice sorgente

文本现病史其他史必填提示bug修改2104

zhouna 5 anni fa
parent
commit
ae667517d3
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/common/components/Textarea/index.jsx

+ 3 - 0
src/common/components/Textarea/index.jsx

@@ -106,6 +106,9 @@ class Textarea extends Component {
     const isRead = this.props.isRead;
     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||'');
+      this.setState({
+        inpText:''
+      });
     }
   }
   componentDidMount(){