mirror of https://github.com/ElemeFE/element
Table: fix sort not working after clearSort (#9100)
parent
e4335bf9cc
commit
8f10ba50f2
|
@ -505,7 +505,7 @@ export default {
|
||||||
let sortOrder;
|
let sortOrder;
|
||||||
const sortingColumn = states.sortingColumn;
|
const sortingColumn = states.sortingColumn;
|
||||||
|
|
||||||
if (sortingColumn !== column) {
|
if (sortingColumn !== column || (sortingColumn === column && sortingColumn.order === null)) {
|
||||||
if (sortingColumn) {
|
if (sortingColumn) {
|
||||||
sortingColumn.order = null;
|
sortingColumn.order = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue