fix(table): click at a unsortable column will cause table unsorted

This commit is contained in:
07akioni 2020-02-03 17:29:18 +08:00
parent 6ce4ed69d8
commit ec5244ab5d

View File

@ -190,6 +190,7 @@ export default {
if (Array.isArray(filterRef)) filterRef = filterRef[0]
const filterElement = filterRef && filterRef.$el
if (filterElement && filterElement.contains(e.target)) return
if (!column.sorter) return
const activeSorter = this.NDataTable.synthesizedActiveSorter
const nextSorter = createNextSorter(column.key, activeSorter, column.sorter)
this.NDataTable.changeSorter(nextSorter)