@syncfusion/ej2-calendars 28.1.41 → 28.2.7

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.
@@ -14652,7 +14652,9 @@ class MaskedDateTime {
14652
14652
  }
14653
14653
  else {
14654
14654
  this.isDayPart = false;
14655
- this.dayTypeCount = this.isDateZero ? this.dayTypeCount + 1 : this.dayTypeCount;
14655
+ if (!(this.dayTypeCount === 1 && this.isDateZero)) {
14656
+ this.dayTypeCount += this.isDateZero ? 1 : 0;
14657
+ }
14656
14658
  }
14657
14659
  break;
14658
14660
  }
@@ -14706,7 +14708,9 @@ class MaskedDateTime {
14706
14708
  newDateValue.setMonth(0);
14707
14709
  this.isLeadingZero = true;
14708
14710
  this.isMonthPart = false;
14709
- this.monthTypeCount = this.isMonthZero ? this.monthTypeCount + 1 : this.monthTypeCount;
14711
+ if (!(this.monthTypeCount === 1 && this.isMonthZero)) {
14712
+ this.monthTypeCount += this.isMonthZero ? 1 : 0;
14713
+ }
14710
14714
  }
14711
14715
  }
14712
14716
  else {