@syncfusion/ej2-calendars 21.1.35 → 21.1.37

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.
@@ -3179,7 +3179,6 @@ let DatePicker = class DatePicker extends Calendar {
3179
3179
  */
3180
3180
  constructor(options, element) {
3181
3181
  super(options, element);
3182
- this.previousElementValue = '';
3183
3182
  this.isDateIconClicked = false;
3184
3183
  this.isAltKeyPressed = false;
3185
3184
  this.isInteracted = true;
@@ -4871,7 +4870,12 @@ let DatePicker = class DatePicker extends Calendar {
4871
4870
  newProp.value = this.value;
4872
4871
  this.previousElementValue = this.inputElement.value;
4873
4872
  if (isNullOrUndefined(this.value)) {
4874
- this.updateInputValue('');
4873
+ if (this.enableMask) {
4874
+ this.updateInputValue(this.maskedDateValue);
4875
+ }
4876
+ else {
4877
+ this.updateInputValue('');
4878
+ }
4875
4879
  this.currentDate = new Date(new Date().setHours(0, 0, 0, 0));
4876
4880
  }
4877
4881
  this.updateInput(true);