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 (#597)

* fix(filters): tree data presets caused regression in any grid w/presets

* refactor(styling): tweak compound operator border color
  • Loading branch information
ghiscoding authored Oct 2, 2020
1 parent 5db78c2 commit 74d611d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,13 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy, OnIn
}

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
2 changes: 1 addition & 1 deletion src/app/modules/angular-slickgrid/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
/* Compound Filters */
$compound-filter-operator-select-font-family: Consolas, "Lucida Console" !default; // use a monospace font so the operator descriptions are all aligned
$compound-filter-operator-select-font-size: 14px !important !default;
$compound-filter-operator-select-border: 1px solid #{lighten($primary-color, 15%)} !default;
$compound-filter-operator-select-border: 1px solid #{lighten($primary-color, 5%)} !default;
$compound-filter-bgcolor: #ffffff !default;
$compound-filter-operator-border-radius: 4px 0 0 4px !default;
$compound-filter-border-radius: 0 4px 4px 0 !default;
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Ghislain B.",
"license": "MIT",
"devDependencies": {
"cypress": "^5.2.0",
"cypress": "^5.3.0",
"mocha": "^5.2.0",
"mochawesome": "^3.1.2",
"mochawesome-merge": "^1.0.7",
Expand Down

0 comments on commit 74d611d

Please sign in to comment.