@@ -214,6 +214,7 @@ class NumberDrop extends Component{
return className(isSelected,noTag,blueBorder,orgBorder);
}
changeToEdit(e){ //整个标签双击编辑状态
+ window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
const {value,id,handleDbclick,patId,handleHide,show} = this.props;
clearTimeout(this.state.timer);//取消延时的单击事件
e.preventDefault();
@@ -152,6 +152,7 @@ class NumberUnitDrop extends Component{
e.stopPropagation();
const text = e.target.innerText || e.target.innerHTML;
@@ -129,6 +129,7 @@ class RadioDrop extends Component{
handleLabelEdit && handleLabelEdit({ikey,changeVal,type:boxMark});
handledbClick(e){
const {value,id,handleDbclick,patId} = this.props;
//e.preventDefault();
@@ -103,6 +103,7 @@ class SpreadDrop extends Component{
changeToEdit(e){//双击
const {value,id,placeholder,handleDbclick,handleHide} = this.props;
let text = e.target.innerText || e.target.innerHTML;
handleHide&&handleHide(); //展开情况下双击收起