fix(grid): scope header generate-value to the clicked column
This commit is contained in:
1 parent
560e1c2c0c
commit
057c04d306
3 files changed
+47
-1
No files matched your search
@@ -5784,6 +5784,7 @@ const {
|
||||
restoreCellSelectionState,
|
||||
cellIsSelected,
|
||||
columnIsSelected,
|
||||
columnIsExclusivelySelected,
|
||||
selectedRangeStart,
|
||||
selectedRowIds,
|
||||
selectedColumnIndexes,
|
||||
@@ -10543,7 +10544,7 @@ watch(
|
||||
function onHeaderContext(col: string, columnIndex: number) {
|
||||
invalidateContextMenuTarget();
|
||||
const visibleColIdx = visibleColumnIndexes.value.indexOf(columnIndex);
|
||||
if (visibleColIdx >= 0 && !columnIsSelected(visibleColIdx)) {
|
||||
if (visibleColIdx >= 0 && !columnIsExclusivelySelected(visibleColIdx)) {
|
||||
selectColumn(visibleColIdx);
|
||||
}
|
||||
contextHeaderColumn.value = col;
|
||||
|
||||
Reference in new issue
Block a user