@syncfusion/ej2-calendars 21.2.6 → 21.2.8

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.
@@ -9899,9 +9899,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
9899
9899
  };
9900
9900
  TimePicker.prototype.validateDisable = function () {
9901
9901
  this.setMinMax(this.initMin, this.initMax);
9902
- this.popupCreation();
9903
- this.popupObj.destroy();
9904
- this.popupWrapper = this.popupObj = null;
9902
+ if (!isNullOrUndefined(this.value)) {
9903
+ this.popupCreation();
9904
+ this.popupObj.destroy();
9905
+ this.popupWrapper = this.popupObj = null;
9906
+ }
9905
9907
  if ((!isNaN(+this.value) && this.value !== null)) {
9906
9908
  if (!this.valueIsDisable(this.value)) {
9907
9909
  //disable value given in value property so reset the date based on current date
@@ -10629,6 +10631,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10629
10631
  case 'end':
10630
10632
  case 'up':
10631
10633
  case 'down':
10634
+ if (!this.isPopupOpen()) {
10635
+ this.popupCreation();
10636
+ this.popupObj.destroy();
10637
+ this.popupObj = this.popupWrapper = null;
10638
+ }
10632
10639
  if (this.enableMask && !this.readonly && !this.isPopupOpen()) {
10633
10640
  event.preventDefault();
10634
10641
  this.notify('keyDownHandler', {