@syncfusion/ej2-calendars 29.1.40 → 29.2.5

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.
@@ -4023,10 +4023,14 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4023
4023
  var target = e.target;
4024
4024
  if (!(closest(target, '.e-datepicker.e-popup-wrapper')) && !isNullOrUndefined(this.inputWrapper)
4025
4025
  && !(closest(target, '.' + INPUTCONTAINER) === this.inputWrapper.container)
4026
- && (!target.classList.contains('e-day'))
4027
- && (!target.classList.contains('e-dlg-overlay'))) {
4026
+ && (!target.classList.contains('e-day'))) {
4028
4027
  this.hide(e);
4029
- this.focusOut();
4028
+ if (target.classList.contains('e-dlg-overlay')) {
4029
+ e.preventDefault();
4030
+ }
4031
+ else {
4032
+ this.focusOut();
4033
+ }
4030
4034
  }
4031
4035
  else if (closest(target, '.e-datepicker.e-popup-wrapper')) {
4032
4036
  // Fix for close the popup when select the previously selected value.
@@ -12207,11 +12211,15 @@ var TimePicker = /** @__PURE__ @class */ (function (_super) {
12207
12211
  if (!(closest(target, '[id="' + this.popupObj.element.id + '"]')) && target !== this.inputElement
12208
12212
  && target !== (this.inputWrapper && this.inputWrapper.buttons[0]) &&
12209
12213
  target !== (this.inputWrapper && this.inputWrapper.clearButton) &&
12210
- target !== (this.inputWrapper && this.inputWrapper.container)
12211
- && (!target.classList.contains('e-dlg-overlay'))) {
12214
+ target !== (this.inputWrapper && this.inputWrapper.container)) {
12212
12215
  if (this.isPopupOpen()) {
12213
12216
  this.hide();
12214
- this.focusOut();
12217
+ if (target.classList.contains('e-dlg-overlay')) {
12218
+ event.preventDefault();
12219
+ }
12220
+ else {
12221
+ this.focusOut();
12222
+ }
12215
12223
  }
12216
12224
  }
12217
12225
  else if (target !== this.inputElement) {
@@ -13466,10 +13474,15 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
13466
13474
  event.preventDefault();
13467
13475
  }
13468
13476
  if (!(closest(target, '[id="' + (this.popupObject && this.popupObject.element.id + '"]'))) && target !== this.inputElement
13469
- && target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container && !target.classList.contains('e-dlg-overlay')) {
13477
+ && target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container) {
13470
13478
  if (this.isTimePopupOpen()) {
13471
13479
  this.hide(event);
13472
- this.focusOut();
13480
+ if (target.classList.contains('e-dlg-overlay')) {
13481
+ event.preventDefault();
13482
+ }
13483
+ else {
13484
+ this.focusOut();
13485
+ }
13473
13486
  }
13474
13487
  }
13475
13488
  else if (target !== this.inputElement) {