@acorex/components 16.19.7 → 16.19.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.
@@ -4181,7 +4181,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
4181
4181
  }
4182
4182
  isValidDate(year, month, day) {
4183
4183
  if (this.type === 'jalali') {
4184
- return this.isValidJalaliDate(+year, +month, +day);
4184
+ return this.isValidJalaliDate(year, month, day);
4185
4185
  }
4186
4186
  else if (this.type === 'gregorian') {
4187
4187
  return this.isValidGregorianDate(+year, +month, +day);
@@ -4199,7 +4199,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
4199
4199
  isValidJalaliDate(year, month, day) {
4200
4200
  try {
4201
4201
  const jDate = moment(`${year}-${month}-${day}`, 'jYYYY-jMM-jDD', true);
4202
- if (jDate.isValid() && jDate.jDate() === day) {
4202
+ if (jDate.isValid() && jDate.jDate() === +day) {
4203
4203
  return jDate;
4204
4204
  }
4205
4205
  else {