@skyux/datetime 5.1.0 → 5.1.1

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.
@@ -2022,6 +2022,15 @@
2022
2022
  _this.changeDetector.markForCheck();
2023
2023
  });
2024
2024
  }
2025
+ else {
2026
+ // If consumer returns an undefined value after custom dates have
2027
+ // already ben established, remove custom dates.
2028
+ if (this.customDates) {
2029
+ this.customDates = undefined;
2030
+ // Avoid an ExpressionChangedAfterItHasBeenCheckedError.
2031
+ this.changeDetector.detectChanges();
2032
+ }
2033
+ }
2025
2034
  }
2026
2035
  };
2027
2036
  SkyDatepickerComponent.prototype.closePicker = function () {