Table: enhanced table sorting when clicking on the arrow (#12890)

pull/13596/head
cnjs 2018-11-28 15:46:53 +08:00 committed by hetech
parent 0e7a7d345f
commit 0011ee6af4
1 changed files with 3 additions and 1 deletions

View File

@ -468,7 +468,9 @@ export default {
handleSortClick(event, column, givenOrder) { handleSortClick(event, column, givenOrder) {
event.stopPropagation(); event.stopPropagation();
let order = givenOrder || this.toggleOrder(column); let order = column.order === givenOrder
? null
: (givenOrder || this.toggleOrder(column));
let target = event.target; let target = event.target;
while (target && target.tagName !== 'TH') { while (target && target.tagName !== 'TH') {