@aquera/nile-elements 1.2.5-beta-1.0 → 1.2.5-beta-1.1

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "1.2.5-beta-1.0",
6
+ "version": "1.2.5-beta-1.1",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -511,11 +511,17 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
511
511
  this.data = [...this.originalOptionItems];
512
512
  }
513
513
 
514
- // Reset measured height when show selected toggles (content height may change)
515
- this.portalManager.resetMeasuredHeight();
514
+ try {
516
515
 
517
- this.requestUpdate();
518
- this.repaintOptionsContainer();
516
+ // Reset measured height when show selected toggles (content height may change)
517
+ this.portalManager.resetMeasuredHeight();
518
+
519
+ this.requestUpdate();
520
+ this.repaintOptionsContainer();
521
+ } catch(e) {
522
+ console.warn("Error in toggleShowSelected", e);
523
+ console.log("Error in toggleShowSelected", e);
524
+ }
519
525
  }
520
526
 
521
527
  private unSelectAll(): void {