@porsche-design-system/components-angular 2.18.0 → 2.19.0-rc.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.
@@ -1736,7 +1736,7 @@ class DefaultConfig {
1736
1736
  }
1737
1737
  class PorscheDesignSystemModule {
1738
1738
  constructor(configParam) {
1739
- const configs = (configParam ?? [new DefaultConfig()]);
1739
+ const configs = (configParam || [new DefaultConfig()]);
1740
1740
  configs.forEach(({ prefix }) => load({ prefix }));
1741
1741
  }
1742
1742
  static load(config) {
@@ -1767,7 +1767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1767
1767
 
1768
1768
  class ToastManager {
1769
1769
  addMessage(message) {
1770
- const toast = document.querySelector('p-toast,[p-toast]');
1770
+ const toast = document.body.querySelector('p-toast,[p-toast]');
1771
1771
  customElements.whenDefined(toast.tagName.toLowerCase()).then(() => toast.addMessage(message));
1772
1772
  }
1773
1773
  }