@syncfusion/ej2-calendars 21.2.5 → 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
@@ -10194,7 +10196,6 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10194
10196
  this.generateList();
10195
10197
  append([this.listWrapper], this.popupWrapper);
10196
10198
  }
10197
- this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
10198
10199
  this.addSelection();
10199
10200
  this.renderPopup();
10200
10201
  detach(this.popupWrapper);
@@ -10630,6 +10631,11 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10630
10631
  case 'end':
10631
10632
  case 'up':
10632
10633
  case 'down':
10634
+ if (!this.isPopupOpen()) {
10635
+ this.popupCreation();
10636
+ this.popupObj.destroy();
10637
+ this.popupObj = this.popupWrapper = null;
10638
+ }
10633
10639
  if (this.enableMask && !this.readonly && !this.isPopupOpen()) {
10634
10640
  event.preventDefault();
10635
10641
  this.notify('keyDownHandler', {