@odx/foundation 1.0.0-beta.39 → 1.0.0-beta.40

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.
@@ -19,7 +19,7 @@ export declare class PopoverHost extends PopoverHost_base {
19
19
  showPopover(): void;
20
20
  hidePopover(): void;
21
21
  togglePopover(state?: boolean): boolean;
22
- canPopoverShow(): boolean;
22
+ canPopoverShow?(): boolean;
23
23
  onBeforePopoverShow?(): void;
24
24
  onPopoverShow?(): void;
25
25
  onBeforePopoverHide?(): void;
package/dist/main.js CHANGED
@@ -1574,7 +1574,7 @@ class PopoverHost extends CanBeDisabled(CustomElement) {
1574
1574
  return this.isOpen;
1575
1575
  }
1576
1576
  showPopover() {
1577
- if (this.isOpen || this.canPopoverShow?.() === false) return;
1577
+ if (this.isOpen || this.disabled || this.canPopoverShow?.() === false) return;
1578
1578
  super.showPopover();
1579
1579
  this.isOpen = true;
1580
1580
  }
@@ -1592,9 +1592,6 @@ class PopoverHost extends CanBeDisabled(CustomElement) {
1592
1592
  }
1593
1593
  return isOpen;
1594
1594
  }
1595
- canPopoverShow() {
1596
- return !this.disabled;
1597
- }
1598
1595
  #findReferenceElement(anchor) {
1599
1596
  return findClosestDocument(this)?.getElementById(anchor);
1600
1597
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odx/foundation",
3
3
  "description": "A library of Web Component building blocks for ODX",
4
- "version": "1.0.0-beta.39",
4
+ "version": "1.0.0-beta.40",
5
5
  "author": "Drägerwerk AG & Co.KGaA",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://odx.draeger.com",