Browse Source

文本模式,本身有内容时不提示无主诉

zhouna 5 years ago
parent
commit
7e1bde61b4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/common/components/Textarea/index.jsx

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

@@ -22,7 +22,9 @@ class Textarea extends Component {
   }
   handleFocus(e){            //初始显示props中的值,focus已经显示输入的值,避免值更新闪烁
     const {handleFocus,fuzhen,handleInput,isChronic,hasMain,boxMark} = this.props;
-    if(boxMark!='1'&&!hasMain){
+    const {inpText} = this.state;
+    if(boxMark!='1'&&!hasMain&&!inpText){
+      //现病史、其他史无主诉且本身无内容是聚焦提示无法操作
       this.setState({
         editable:false
       });