novo-elements 7.6.0-next.2 → 7.6.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.
@@ -27637,7 +27637,10 @@ class NovoOverlayTemplateComponent {
27637
27637
  }
27638
27638
  elementIsInNestedOverlay(el) {
27639
27639
  while (el.parentNode) {
27640
- if (el.id?.includes('novo-overlay-') || el.id?.includes('modal-container-')) {
27640
+ if (Helpers.isString(el.id) &&
27641
+ (el.id?.includes('novo-overlay-') || el.id?.includes('modal-container-'))) {
27642
+ // checking to see if the current overlay is newer (in front of the parent overlay)
27643
+ // example text novo-overlay-1666291728835
27641
27644
  return this.id.split('-')[2] < el.id.split('-')[2];
27642
27645
  }
27643
27646
  el = el.parentNode;