@syncfusion/ej2-calendars 21.1.41 → 21.2.4

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.
@@ -3264,10 +3264,13 @@ let DatePicker = class DatePicker extends Calendar {
3264
3264
  this.createInput();
3265
3265
  this.updateHtmlAttributeToWrapper();
3266
3266
  this.setAllowEdit();
3267
- this.updateInput(true);
3268
3267
  if (this.enableMask && !this.value && this.maskedDateValue && (this.floatLabelType === 'Always' || !this.floatLabelType || !this.placeholder)) {
3268
+ this.updateInput(true);
3269
3269
  this.updateInputValue(this.maskedDateValue);
3270
3270
  }
3271
+ else if (!this.enableMask) {
3272
+ this.updateInput(true);
3273
+ }
3271
3274
  this.previousElementValue = this.inputElement.value;
3272
3275
  this.previousDate = !isNullOrUndefined(this.value) ? new Date(+this.value) : null;
3273
3276
  this.inputElement.setAttribute('value', this.inputElement.value);
@@ -4410,7 +4413,7 @@ let DatePicker = class DatePicker extends Calendar {
4410
4413
  this.modal = null;
4411
4414
  }
4412
4415
  if (Browser.isDevice) {
4413
- if (!isNullOrUndefined(this.mobilePopupWrapper)) {
4416
+ if (!isNullOrUndefined(this.mobilePopupWrapper) && (prevent && (isNullOrUndefined(this.preventArgs) || !this.preventArgs.cancel))) {
4414
4417
  this.mobilePopupWrapper.remove();
4415
4418
  this.mobilePopupWrapper = null;
4416
4419
  }