ninegrid2 6.213.0 → 6.215.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18205,7 +18205,7 @@ class ngFilterButton extends HTMLElement
18205
18205
  };
18206
18206
  set filterOptions(v) {
18207
18207
  this.#filterOptions = v;
18208
- this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
18208
+ this.classList.toggle('filtered', this.#filterOptions?.some(item => item.data.length > 0));
18209
18209
  }
18210
18210
 
18211
18211
  #onClick = (e) => {
@@ -18203,7 +18203,7 @@ class ngFilterButton extends HTMLElement
18203
18203
  };
18204
18204
  set filterOptions(v) {
18205
18205
  this.#filterOptions = v;
18206
- this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
18206
+ this.classList.toggle('filtered', this.#filterOptions?.some(item => item.data.length > 0));
18207
18207
  }
18208
18208
 
18209
18209
  #onClick = (e) => {
@@ -273,7 +273,7 @@ class ngFilterButton extends HTMLElement
273
273
  };
274
274
  set filterOptions(v) {
275
275
  this.#filterOptions = v;
276
- this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
276
+ this.classList.toggle('filtered', this.#filterOptions?.some(item => item.data.length > 0));
277
277
  }
278
278
 
279
279
  #onClick = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.213.0",
4
+ "version": "6.215.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -273,7 +273,7 @@ class ngFilterButton extends HTMLElement
273
273
  };
274
274
  set filterOptions(v) {
275
275
  this.#filterOptions = v;
276
- this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
276
+ this.classList.toggle('filtered', this.#filterOptions?.some(item => item.data.length > 0));
277
277
  }
278
278
 
279
279
  #onClick = (e) => {