fix(views/table): show/hide columns not always updated properly

This commit is contained in:
Elian Doran
2025-07-14 16:51:20 +03:00
parent 4cc2fa5300
commit 38fce25b86

View File

@@ -88,11 +88,11 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, tabulator:
function buildColumnItems() {
const items: MenuItem<unknown>[] = [];
for (const column of tabulator.getColumns()) {
const { title, visible, field } = column.getDefinition();
const { title, field } = column.getDefinition();
items.push({
title,
checked: visible,
checked: column.isVisible(),
uiIcon: "bx bx-empty",
enabled: !!field,
handler: () => column.toggle()