Skip to content

Commit

Permalink
fix(filters): tree data presets caused regression in any grid w/prese…
Browse files Browse the repository at this point in the history
…ts (#137)
  • Loading branch information
ghiscoding authored Oct 2, 2020
1 parent 3dfcd23 commit bacac83
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,10 +936,13 @@ export class SlickVanillaGridBundle {
}

if (dataset.length > 0) {
if (!this._isDatasetInitialized && this._gridOptions.enableCheckboxSelector) {
this.loadRowSelectionPresetWhenExists();
if (!this._isDatasetInitialized) {
this.loadPresetsWhenDatasetInitialized();

if (this._gridOptions.enableCheckboxSelector) {
this.loadRowSelectionPresetWhenExists();
}
}
this.loadPresetsWhenDatasetInitialized();
this._isDatasetInitialized = true;

// also update the hierarchical dataset
Expand Down

0 comments on commit bacac83

Please sign in to comment.