mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix(table): click at a unsortable column will cause table unsorted
This commit is contained in:
parent
6ce4ed69d8
commit
ec5244ab5d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user