From 8716eb141c9101f5ba056efe1e3eaefbc0d36d08 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 18 Nov 2021 11:47:55 -0500 Subject: [PATCH] Fix Tabulator checkbox selection (#2931) --- panel/models/tabulator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panel/models/tabulator.ts b/panel/models/tabulator.ts index 3e722091db..710f337043 100644 --- a/panel/models/tabulator.ts +++ b/panel/models/tabulator.ts @@ -645,12 +645,12 @@ export class DataTabulatorView extends PanelHTMLBoxView { } rowSelectionChanged(data: any, _: any): void { - if (this._selection_updating || this._initializing || (typeof this.model.select_mode) === 'boolean' || (this.model.select_mode.startsWith('checkbox'))) + if (this._selection_updating || this._initializing || (typeof this.model.select_mode) === 'boolean' || (typeof this.model.select_mode) === 'number' || this.model.configuration.dataTree) return const indices: number[] = data.map((row: any) => row._index) const filtered = this._filter_selected(indices) this._selection_updating = indices.length === filtered.length - this.model.source.selected.indices = filtered; + this.model.source.selected.indices = filtered this._selection_updating = false }