From 3035d41fd6d5eb8675c84941d5db6f02bd305b96 Mon Sep 17 00:00:00 2001 From: jonyshi Date: Thu, 1 Aug 2019 18:57:37 +0800 Subject: [PATCH] =?UTF-8?q?=20title=20=E4=B8=BAdom=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E6=97=B6,=E6=8B=96=E6=8B=BD=E5=A4=B1=E5=8E=BB=E7=84=A6?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/TableHeader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TableHeader.js b/src/TableHeader.js index 747e13d..14fd2bc 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -197,7 +197,8 @@ class TableHeader extends Component { let event = Event.getEvent(e) , targetEvent = Event.getTarget(event); const { clsPrefix, contentTable,lastShowIndex } = this.props; - let currentElement = this.getOnLineObject(targetEvent); + // let currentElement = this.getOnLineObject(targetEvent); + let currentElement = this.getTargetToTh(targetEvent); if(!currentElement)return; let type = currentElement.getAttribute('data-type'); if(!this.props.dragborder && !this.props.draggable)return;