Table: fix filter panel reference element to the trigger span (#10384)

This commit is contained in:
杨奕 2018-03-27 15:01:57 +08:00 committed by GitHub
parent af4b13d911
commit 3c8a6e8e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,8 @@ export default {
handleFilterClick(event, column) {
event.stopPropagation();
const target = event.target;
const cell = target.parentNode;
let cell = target.tagName === 'TH' ? target : target.parentNode;
cell = cell.querySelector('.el-table__column-filter-trigger') || cell;
const table = this.$parent;
let filterPanel = this.filterPanels[column.id];