mirror of https://github.com/ElemeFE/element
Table: enhanced table sorting when clicking on the arrow (#12890)
parent
0e7a7d345f
commit
0011ee6af4
|
@ -468,7 +468,9 @@ export default {
|
|||
|
||||
handleSortClick(event, column, givenOrder) {
|
||||
event.stopPropagation();
|
||||
let order = givenOrder || this.toggleOrder(column);
|
||||
let order = column.order === givenOrder
|
||||
? null
|
||||
: (givenOrder || this.toggleOrder(column));
|
||||
|
||||
let target = event.target;
|
||||
while (target && target.tagName !== 'TH') {
|
||||
|
|
Loading…
Reference in New Issue