Skip to content

Commit

Permalink
Fix Tabulator checkbox selection (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 19, 2021
1 parent 23529cd commit 8716eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/models/tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8716eb1

Please sign in to comment.