@syncfusion/ej2-calendars 23.1.38 → 23.1.40

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.
@@ -2271,7 +2271,7 @@ let Calendar = class Calendar extends CalendarBase {
2271
2271
  this.islamicModule.islamicRenderTemplate(elements, count, classNm, e, this.value);
2272
2272
  }
2273
2273
  this.changedArgs = { value: this.value, values: this.values };
2274
- this.changeHandler();
2274
+ e && e.type === 'click' && e.currentTarget.classList.contains(OTHERMONTH) ? this.changeHandler(e) : this.changeHandler();
2275
2275
  }
2276
2276
  clickHandler(e) {
2277
2277
  const eve = e.currentTarget;
@@ -3300,7 +3300,7 @@ let DatePicker = class DatePicker extends Calendar {
3300
3300
  const ariaAttrs = {
3301
3301
  'aria-atomic': 'true', 'aria-expanded': 'false',
3302
3302
  'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
3303
- 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
3303
+ 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false', 'aria-label': this.getModuleName()
3304
3304
  };
3305
3305
  if (this.getModuleName() === 'datepicker') {
3306
3306
  const l10nLocale = { placeholder: this.placeholder };
@@ -4592,7 +4592,7 @@ let DatePicker = class DatePicker extends Calendar {
4592
4592
  const ariaAttrs = {
4593
4593
  'aria-atomic': 'true', 'aria-disabled': 'true',
4594
4594
  'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
4595
- 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
4595
+ 'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false', 'aria-label': this.getModuleName()
4596
4596
  };
4597
4597
  if (this.inputElement) {
4598
4598
  Input.removeAttributes(ariaAttrs, this.inputElement);
@@ -12494,6 +12494,12 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
12494
12494
  this.cloneElement = this.element.cloneNode(true);
12495
12495
  this.dateTimeFormat = this.cldrDateTimeFormat();
12496
12496
  this.initValue = this.value;
12497
+ if (typeof (this.min) === 'string') {
12498
+ this.min = this.checkDateValue(new Date(this.min));
12499
+ }
12500
+ if (typeof (this.max) === 'string') {
12501
+ this.max = this.checkDateValue(new Date(this.max));
12502
+ }
12497
12503
  if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
12498
12504
  this.enabled = false;
12499
12505
  }