@litigiovirtual/ius-design-components 2.1.22 → 2.1.23
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.
|
@@ -12693,13 +12693,16 @@ class ToastViewportComponent {
|
|
|
12693
12693
|
// creación, y este viewport se crea al arrancar: sin esto, cualquier
|
|
12694
12694
|
// Modal/Drawer abierto después quedaría encima de los toasts.
|
|
12695
12695
|
this.overlayRef.hostElement.style.zIndex = 'var(--ius-z-toast, 1700)';
|
|
12696
|
-
// El pane del CDK trae `pointer-events: auto`, así que un viewport SIN toasts
|
|
12697
|
-
// seguía comiéndose los clics de su rectángulo (el ancho de la columna más su
|
|
12698
|
-
// padding) sobre lo que hubiera debajo. Se apaga aquí y cada toast lo vuelve
|
|
12699
|
-
// a encender con su propio `pointer-events: auto`.
|
|
12700
|
-
this.overlayRef.overlayElement.style.pointerEvents = 'none';
|
|
12701
12696
|
this.applyPosition(this.position());
|
|
12702
12697
|
this.overlayRef.attach(new TemplatePortal(this.tpl(), this.viewContainerRef));
|
|
12698
|
+
// DESPUÉS del attach, nunca antes: `OverlayRef.attach()` termina con
|
|
12699
|
+
// `_togglePointerEvents(true)`, que deja el estilo inline en '' y borra
|
|
12700
|
+
// cualquier valor previo. El pane del CDK trae `pointer-events: auto` por
|
|
12701
|
+
// clase, así que un viewport SIN toasts se comía los clics de su rectángulo
|
|
12702
|
+
// (la columna más su padding) sobre lo que hubiera debajo — p. ej. el NavUser
|
|
12703
|
+
// con la esquina top-right. Cada toast reactiva sus clics con su propio
|
|
12704
|
+
// `pointer-events: auto`. Este viewport se attachea UNA vez y no se re-attachea.
|
|
12705
|
+
this.overlayRef.overlayElement.style.pointerEvents = 'none';
|
|
12703
12706
|
}
|
|
12704
12707
|
ngOnDestroy() {
|
|
12705
12708
|
this.overlayRef?.dispose();
|