|
@@ -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
|
|
|
});
|