浏览代码

文本模式提示bug修改2183

zhouna 5 年之前
父节点
当前提交
fdc0da7075
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/common/components/Textarea/index.jsx
  2. 2 2
      src/components/PushItems/index.jsx

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

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

+ 2 - 2
src/components/PushItems/index.jsx

@@ -102,7 +102,7 @@ class PushItems extends Component {
       }
       store.dispatch(addAssistLabel(checkArr))
     }
-    if(checkedAssay.length > 0){
+    /*if(checkedAssay.length > 0){
       document.getElementById("inspectResultData").scrollIntoView(true)
     }else{
       if(checkedCheck.length > 0){
@@ -110,7 +110,7 @@ class PushItems extends Component {
       }else{
         return;
       }
-    }
+    }*/
   }
 
   changeAssay(item) {