@firestitch/form 13.3.2 → 13.3.4

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.
@@ -599,6 +599,9 @@ class FsFormDirective {
599
599
  this.ngForm.form.valueChanges
600
600
  .pipe(takeUntil(this._destroy$))
601
601
  .subscribe((changes) => {
602
+ if (this._dialogBackdropEscape && this._dialogRef) {
603
+ this._dialogRef.disableClose = true;
604
+ }
602
605
  if (this.confirm) {
603
606
  const existing = Object.keys(this._snapshot);
604
607
  Object.keys(changes)
@@ -703,9 +706,8 @@ class FsFormDirective {
703
706
  });
704
707
  }
705
708
  _registerConfirmDialogBackdropEscape() {
706
- this._dialogBackdropEscape = this._dialogRef && !this._dialogRef.disableClose;
707
- if (this._dialogRef && !this._dialogRef.disableClose) {
708
- this._dialogRef.disableClose = true;
709
+ this._dialogBackdropEscape = !this._dialogRef?.disableClose;
710
+ if (this._dialogBackdropEscape) {
709
711
  this._dialogRef.backdropClick()
710
712
  .pipe(takeUntil(this._destroy$))
711
713
  .subscribe(() => {