瀏覽代碼

查体生命体征标签删除光标bug修改2373

zhouna 5 年之前
父節點
當前提交
2617083964
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/common/components/EditableSpan/index.jsx

+ 4 - 0
src/common/components/EditableSpan/index.jsx

@@ -305,6 +305,10 @@ class EditableSpan extends Component{
     const ext = preIsExt?style['ext']:style['unselect'];
     const unselect = value.match(config.punctuationReg)||preSelected?'':ext;
     const hasBr = br?style['editable-br']:'';       //最后一个体征标签换行
+    const $span = this.$span.current;
+    if(br&&$span&&!$span.innerText){
+      this.$span.current.innerHTML=' ';
+    }
     return classNames(style['editable-span'],isFull,unselect,hasBr);
   }