@aquera/nile-elements 0.0.5-4 → 0.0.5-5

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": "0.0.5-4",
6
+ "version": "0.0.5-5",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -94,6 +94,7 @@ export const styles = css`
94
94
  pointer-events: none;
95
95
  margin-left: 12px;
96
96
  margin-right: 12px;
97
+ width:auto;
97
98
  }
98
99
 
99
100
  @media (forced-colors: active) {
@@ -543,6 +543,18 @@ export class NileSelect extends NileElement implements NileFormControl {
543
543
  this.displayInput.focus({ preventScroll: true });
544
544
  }
545
545
  }
546
+
547
+ if (this.showSelected) {
548
+ const allOptions = this.getAllOptions();
549
+ allOptions.forEach(el => {
550
+ if (!el.selected) {
551
+ el.hidden = this.showSelected;
552
+ }
553
+ });
554
+
555
+ this.requestUpdate();
556
+ }
557
+
546
558
  }
547
559
 
548
560
  private handleDefaultSlotChange() {