@magic-xpa/angular 4.1300.0-dev4130.280 → 4.1300.0-dev4130.282

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.
@@ -1443,7 +1443,8 @@ class MagicOverlayContainer extends BaseMagicOverlayContainer {
1443
1443
  let obj = this.componentRef.instance;
1444
1444
  if (obj && obj.magicModalProperties instanceof MagicModalProperties)
1445
1445
  obj = obj.magicModalProperties;
1446
- if (!(obj instanceof MagicModalProperties)) {
1446
+ // The properties come either from a MagicModalProperties object or from a component that implements MagicModalInterface itself.
1447
+ if (!(obj instanceof MagicModalProperties) && typeof obj?.ShowTitleBar !== 'function') {
1447
1448
  const componentName = this.componentRef?.instance?.constructor?.name || 'Unknown';
1448
1449
  throw new Error(`Overlay component '${componentName}' cannot be opened. ` +
1449
1450
  `Ensure that the component contains a 'magicModalProperties' property of type MagicModalProperties. ` +