@aquera/nile-elements 1.5.8 → 1.5.9

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.5.8",
6
+ "version": "1.5.9",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -449,10 +449,12 @@ export class NileDropdown extends NileElement {
449
449
  }
450
450
 
451
451
  private updateTriggerDisabledState() {
452
- const trigger = this.querySelector('[slot="trigger"]') as HTMLElement | null;
452
+ const trigger = this.querySelector('[slot="trigger"]') as any;
453
453
  if (!trigger) return;
454
- if ('disabled' in trigger) {
455
- (trigger as any).disabled = this.disabled;
454
+ const triggerAlreadyDisabled = trigger.hasAttribute('disabled');
455
+ if (this.disabled || triggerAlreadyDisabled) {
456
+ trigger.disabled = true;
457
+ this.disabled = true;
456
458
  }
457
459
  }
458
460