@firestitch/form 12.3.4 → 12.3.5

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.
@@ -2405,15 +2405,21 @@
2405
2405
  };
2406
2406
  FsButtonDirective.prototype.process = function () {
2407
2407
  this.setClass('process');
2408
- this._matButton.disableRipple = true;
2408
+ if (this._matButton) {
2409
+ this._matButton.disableRipple = true;
2410
+ }
2409
2411
  };
2410
2412
  FsButtonDirective.prototype.success = function () {
2411
2413
  this.setClass('success');
2412
- this._matButton.disableRipple = false;
2414
+ if (this._matButton) {
2415
+ this._matButton.disableRipple = false;
2416
+ }
2413
2417
  };
2414
2418
  FsButtonDirective.prototype.error = function () {
2415
2419
  this.setClass('error');
2416
- this._matButton.disableRipple = false;
2420
+ if (this._matButton) {
2421
+ this._matButton.disableRipple = false;
2422
+ }
2417
2423
  };
2418
2424
  FsButtonDirective.prototype.setClass = function (cls) {
2419
2425
  var svg = this._getSvg(cls);
@@ -2440,7 +2446,9 @@
2440
2446
  .forEach(function (el) {
2441
2447
  el.remove();
2442
2448
  });
2443
- this._matButton.disableRipple = false;
2449
+ if (this._matButton) {
2450
+ this._matButton.disableRipple = false;
2451
+ }
2444
2452
  this._resetClass();
2445
2453
  };
2446
2454
  FsButtonDirective.prototype.ngOnDestroy = function () {