|
@@ -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
|