title 为dom结构时,拖拽失去焦点
This commit is contained in:
parent
8abf487b30
commit
3035d41fd6
|
@ -197,7 +197,8 @@ class TableHeader extends Component {
|
||||||
let event = Event.getEvent(e) ,
|
let event = Event.getEvent(e) ,
|
||||||
targetEvent = Event.getTarget(event);
|
targetEvent = Event.getTarget(event);
|
||||||
const { clsPrefix, contentTable,lastShowIndex } = this.props;
|
const { clsPrefix, contentTable,lastShowIndex } = this.props;
|
||||||
let currentElement = this.getOnLineObject(targetEvent);
|
// let currentElement = this.getOnLineObject(targetEvent);
|
||||||
|
let currentElement = this.getTargetToTh(targetEvent);
|
||||||
if(!currentElement)return;
|
if(!currentElement)return;
|
||||||
let type = currentElement.getAttribute('data-type');
|
let type = currentElement.getAttribute('data-type');
|
||||||
if(!this.props.dragborder && !this.props.draggable)return;
|
if(!this.props.dragborder && !this.props.draggable)return;
|
||||||
|
|
Loading…
Reference in New Issue