@syncfusion/ej2-calendars 29.2.4 → 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.
- package/dist/ej2-calendars.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +21 -8
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +21 -8
- package/dist/es6/ej2-calendars.es5.js.map +1 -1
- package/dist/global/ej2-calendars.min.js +2 -2
- package/dist/global/ej2-calendars.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/datepicker/datepicker.js +7 -3
- package/src/datetimepicker/datetimepicker.js +7 -2
- package/src/timepicker/timepicker.js +7 -3
|
@@ -3980,10 +3980,14 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3980
3980
|
const target = e.target;
|
|
3981
3981
|
if (!(closest(target, '.e-datepicker.e-popup-wrapper')) && !isNullOrUndefined(this.inputWrapper)
|
|
3982
3982
|
&& !(closest(target, '.' + INPUTCONTAINER) === this.inputWrapper.container)
|
|
3983
|
-
&& (!target.classList.contains('e-day'))
|
|
3984
|
-
&& (!target.classList.contains('e-dlg-overlay'))) {
|
|
3983
|
+
&& (!target.classList.contains('e-day'))) {
|
|
3985
3984
|
this.hide(e);
|
|
3986
|
-
|
|
3985
|
+
if (target.classList.contains('e-dlg-overlay')) {
|
|
3986
|
+
e.preventDefault();
|
|
3987
|
+
}
|
|
3988
|
+
else {
|
|
3989
|
+
this.focusOut();
|
|
3990
|
+
}
|
|
3987
3991
|
}
|
|
3988
3992
|
else if (closest(target, '.e-datepicker.e-popup-wrapper')) {
|
|
3989
3993
|
// Fix for close the popup when select the previously selected value.
|
|
@@ -12080,11 +12084,15 @@ let TimePicker = class TimePicker extends Component {
|
|
|
12080
12084
|
if (!(closest(target, '[id="' + this.popupObj.element.id + '"]')) && target !== this.inputElement
|
|
12081
12085
|
&& target !== (this.inputWrapper && this.inputWrapper.buttons[0]) &&
|
|
12082
12086
|
target !== (this.inputWrapper && this.inputWrapper.clearButton) &&
|
|
12083
|
-
target !== (this.inputWrapper && this.inputWrapper.container)
|
|
12084
|
-
&& (!target.classList.contains('e-dlg-overlay'))) {
|
|
12087
|
+
target !== (this.inputWrapper && this.inputWrapper.container)) {
|
|
12085
12088
|
if (this.isPopupOpen()) {
|
|
12086
12089
|
this.hide();
|
|
12087
|
-
|
|
12090
|
+
if (target.classList.contains('e-dlg-overlay')) {
|
|
12091
|
+
event.preventDefault();
|
|
12092
|
+
}
|
|
12093
|
+
else {
|
|
12094
|
+
this.focusOut();
|
|
12095
|
+
}
|
|
12088
12096
|
}
|
|
12089
12097
|
}
|
|
12090
12098
|
else if (target !== this.inputElement) {
|
|
@@ -13319,10 +13327,15 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
13319
13327
|
event.preventDefault();
|
|
13320
13328
|
}
|
|
13321
13329
|
if (!(closest(target, '[id="' + (this.popupObject && this.popupObject.element.id + '"]'))) && target !== this.inputElement
|
|
13322
|
-
&& target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container
|
|
13330
|
+
&& target !== this.timeIcon && !isNullOrUndefined(this.inputWrapper) && target !== this.inputWrapper.container) {
|
|
13323
13331
|
if (this.isTimePopupOpen()) {
|
|
13324
13332
|
this.hide(event);
|
|
13325
|
-
|
|
13333
|
+
if (target.classList.contains('e-dlg-overlay')) {
|
|
13334
|
+
event.preventDefault();
|
|
13335
|
+
}
|
|
13336
|
+
else {
|
|
13337
|
+
this.focusOut();
|
|
13338
|
+
}
|
|
13326
13339
|
}
|
|
13327
13340
|
}
|
|
13328
13341
|
else if (target !== this.inputElement) {
|