@firestitch/form 12.4.10 → 12.4.12

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.
@@ -680,7 +680,7 @@
680
680
  if (this.invalid) {
681
681
  this.invalid.emit(this._submitEvent);
682
682
  }
683
- var message = 'Changes not saved. Please review errors highlighted in red.';
683
+ var message = 'Please review errors highlighted in red';
684
684
  this._message.error(message, { mode: i2.MessageMode.Toast });
685
685
  var el = this._element.nativeElement.querySelector('.ng-invalid');
686
686
  if (el) {
@@ -1359,16 +1359,9 @@
1359
1359
  };
1360
1360
  FsControlDirective.prototype.ngAfterContentInit = function () {
1361
1361
  if (this._control) {
1362
- /*
1363
- Ensure that statusChanges has one subscription per control. Multiple can happen
1364
- when multiple fsForm validation directives are applied to the same element
1365
- */
1366
- if (!this._control.statusChangesSubscribe) {
1367
- this._control.statusChanges
1368
- .pipe(operators.takeUntil(this._destroy$))
1369
- .subscribe(this.render.bind(this));
1370
- this._control.statusChangesSubscribe = true;
1371
- }
1362
+ this._control.statusChanges
1363
+ .pipe(operators.takeUntil(this._destroy$))
1364
+ .subscribe(this.render.bind(this));
1372
1365
  }
1373
1366
  };
1374
1367
  FsControlDirective.prototype.getMessageSelector = function () {
@@ -1437,6 +1430,10 @@
1437
1430
  */
1438
1431
  FsControlDirective.prototype.render = function () {
1439
1432
  var _a, _b;
1433
+ if (this._control.statusChangesSubscribe) {
1434
+ return;
1435
+ }
1436
+ this._control.statusChangesSubscribe = true;
1440
1437
  if (this.ngControl) {
1441
1438
  var renderer = this.renderer2;
1442
1439
  var wrapper = this.getWrapperElement();