@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.
@@ -9783,9 +9783,11 @@ let TimePicker = class TimePicker extends Component {
9783
9783
  }
9784
9784
  validateDisable() {
9785
9785
  this.setMinMax(this.initMin, this.initMax);
9786
- this.popupCreation();
9787
- this.popupObj.destroy();
9788
- this.popupWrapper = this.popupObj = null;
9786
+ if (!isNullOrUndefined(this.value)) {
9787
+ this.popupCreation();
9788
+ this.popupObj.destroy();
9789
+ this.popupWrapper = this.popupObj = null;
9790
+ }
9789
9791
  if ((!isNaN(+this.value) && this.value !== null)) {
9790
9792
  if (!this.valueIsDisable(this.value)) {
9791
9793
  //disable value given in value property so reset the date based on current date
@@ -10078,7 +10080,6 @@ let TimePicker = class TimePicker extends Component {
10078
10080
  this.generateList();
10079
10081
  append([this.listWrapper], this.popupWrapper);
10080
10082
  }
10081
- this.openPopupEventArgs.appendTo.appendChild(this.popupWrapper);
10082
10083
  this.addSelection();
10083
10084
  this.renderPopup();
10084
10085
  detach(this.popupWrapper);
@@ -10511,6 +10512,11 @@ let TimePicker = class TimePicker extends Component {
10511
10512
  case 'end':
10512
10513
  case 'up':
10513
10514
  case 'down':
10515
+ if (!this.isPopupOpen()) {
10516
+ this.popupCreation();
10517
+ this.popupObj.destroy();
10518
+ this.popupObj = this.popupWrapper = null;
10519
+ }
10514
10520
  if (this.enableMask && !this.readonly && !this.isPopupOpen()) {
10515
10521
  event.preventDefault();
10516
10522
  this.notify('keyDownHandler', {