@firestitch/form 13.3.5 → 13.3.6
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.
|
@@ -498,8 +498,10 @@ class FsFormDirective {
|
|
|
498
498
|
.pipe(takeUntil(this._destroy$))
|
|
499
499
|
.subscribe((event) => {
|
|
500
500
|
if (this._dialogBackdropEscape && event.code === 'Escape') {
|
|
501
|
+
const cdkOverlayPane = Array
|
|
502
|
+
.from(document.querySelectorAll('.cdk-overlay-pane')).pop();
|
|
501
503
|
const activeDialog = this
|
|
502
|
-
._activeDialog(document.
|
|
504
|
+
._activeDialog(document.getElementById(this._dialogRef.id), cdkOverlayPane);
|
|
503
505
|
if (activeDialog) {
|
|
504
506
|
this._ngZone.run(() => {
|
|
505
507
|
this._formClose();
|