@syncfusion/ej2-calendars 20.3.48 → 20.3.50

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.
@@ -770,7 +770,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
770
770
  || (this.getDateVal(localDate, value))) {
771
771
  addClass([tdEle], SELECTED);
772
772
  }
773
- if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && currentTarget.classList.contains(SELECTED)) {
773
+ if (!isNullOrUndefined(currentTarget) && currentTarget.innerText === tdEle.innerText && this.previousDates && tdEle.classList.contains(SELECTED) && currentTarget.classList.contains(SELECTED)) {
774
774
  removeClass([tdEle], SELECTED);
775
775
  this.previousDates = false;
776
776
  var copyValues = this.copyValues(values);
@@ -782,6 +782,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
782
782
  if (localDateString_1 === tempDateString_1) {
783
783
  var index = copyValues.indexOf(copyValues[i]);
784
784
  copyValues.splice(index, 1);
785
+ values.splice(index, 1);
785
786
  }
786
787
  }
787
788
  this.setProperties({ values: copyValues }, true);
@@ -3249,7 +3250,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3249
3250
  };
3250
3251
  DatePicker.prototype.createInput = function () {
3251
3252
  var ariaAttrs = {
3252
- 'aria-live': 'off', 'aria-atomic': 'true', 'aria-expanded': 'false',
3253
+ 'aria-atomic': 'true', 'aria-expanded': 'false',
3253
3254
  'role': 'combobox', 'autocomplete': 'off', 'autocorrect': 'off',
3254
3255
  'autocapitalize': 'off', 'spellcheck': 'false', 'aria-invalid': 'false'
3255
3256
  };
@@ -3617,6 +3618,12 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3617
3618
  module: "MaskedDateTime"
3618
3619
  });
3619
3620
  }
3621
+ if (closest(this.element, 'form')) {
3622
+ var element = this.element;
3623
+ var keyupEvent = document.createEvent('KeyboardEvent');
3624
+ keyupEvent.initEvent('keyup', false, true);
3625
+ element.dispatchEvent(keyupEvent);
3626
+ }
3620
3627
  };
3621
3628
  DatePicker.prototype.preventEventBubbling = function (e) {
3622
3629
  e.preventDefault();
@@ -4454,7 +4461,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4454
4461
  _super.prototype.destroy.call(this);
4455
4462
  }
4456
4463
  var ariaAttrs = {
4457
- 'aria-live': 'off', 'aria-atomic': 'true', 'aria-disabled': 'true',
4464
+ 'aria-atomic': 'true', 'aria-disabled': 'true',
4458
4465
  'aria-expanded': 'false', 'role': 'combobox', 'autocomplete': 'off',
4459
4466
  'autocorrect': 'off', 'autocapitalize': 'off', 'spellcheck': 'false'
4460
4467
  };
@@ -5618,6 +5625,12 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5618
5625
  this.changeTrigger(e);
5619
5626
  this.clearRange();
5620
5627
  this.hide(e);
5628
+ if (closest(this.element, 'form')) {
5629
+ var element = this.firstHiddenChild;
5630
+ var keyupEvent = document.createEvent('KeyboardEvent');
5631
+ keyupEvent.initEvent('keyup', false, true);
5632
+ element.dispatchEvent(keyupEvent);
5633
+ }
5621
5634
  };
5622
5635
  DateRangePicker.prototype.restoreValue = function () {
5623
5636
  this.previousEleValue = this.inputElement.value;
@@ -10864,6 +10877,12 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
10864
10877
  module: "MaskedDateTime"
10865
10878
  });
10866
10879
  }
10880
+ if (closest(this.element, 'form')) {
10881
+ var element = this.element;
10882
+ var keyupEvent = document.createEvent('KeyboardEvent');
10883
+ keyupEvent.initEvent('keyup', false, true);
10884
+ element.dispatchEvent(keyupEvent);
10885
+ }
10867
10886
  };
10868
10887
  TimePicker.prototype.clear = function (event) {
10869
10888
  this.setProperties({ value: null }, true);