@mtna/web-form-angular 1.0.6-SNAPSHOT.19 → 1.0.6-SNAPSHOT.20

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.
@@ -7613,7 +7613,7 @@
7613
7613
  this.mouseFocused = true;
7614
7614
  };
7615
7615
  MtnaWfStepCardComponent.prototype.handleMouseLeave = function (event) {
7616
- this.handleFocusChange(null);
7616
+ this.emitDeactivate();
7617
7617
  this.mouseFocused = false;
7618
7618
  };
7619
7619
  Object.defineProperty(MtnaWfStepCardComponent.prototype, "step", {
@@ -7628,19 +7628,9 @@
7628
7628
  configurable: true
7629
7629
  });
7630
7630
  MtnaWfStepCardComponent.prototype.handleFocusChange = function (event) {
7631
- var _this = this;
7632
7631
  if (!!this.step && coreTs.isPresent(event)) {
7633
7632
  this.focused.emit(this.step);
7634
7633
  }
7635
- else if (!coreTs.isPresent(event)) {
7636
- // Wait until focus settles, then check whether it actually left the card
7637
- setTimeout(function () {
7638
- var activeElement = document.activeElement;
7639
- if (!_this._elementRef.nativeElement.contains(activeElement)) {
7640
- _this.emitDeactivate();
7641
- }
7642
- });
7643
- }
7644
7634
  };
7645
7635
  MtnaWfStepCardComponent.prototype.emitDeactivate = function () {
7646
7636
  this.focused.emit(new FormStep(-1, 'Deactivate', deactivateStep));