@syncfusion/ej2-calendars 20.2.40 → 20.2.46
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.umd.min.js +2 -2
- package/dist/ej2-calendars.umd.min.js.map +1 -1
- package/dist/es6/ej2-calendars.es2015.js +5 -5
- package/dist/es6/ej2-calendars.es2015.js.map +1 -1
- package/dist/es6/ej2-calendars.es5.js +5 -5
- 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 +10 -10
- package/src/calendar/calendar.js +1 -1
- package/src/datepicker/datepicker.js +1 -1
- package/src/daterangepicker/daterangepicker.js +1 -1
- package/src/datetimepicker/datetimepicker.js +1 -1
- package/src/timepicker/timepicker.js +1 -1
|
@@ -2499,7 +2499,7 @@ let Calendar = class Calendar extends CalendarBase {
|
|
|
2499
2499
|
if (!isNullOrUndefined(this.value)) {
|
|
2500
2500
|
this.setProperties({ value: this.value }, true);
|
|
2501
2501
|
}
|
|
2502
|
-
if (!this.isMultiSelection && +this.value !== Number.NaN && (+this.value !== +this.previousDate || this.previousDate == null
|
|
2502
|
+
if (!this.isMultiSelection && +this.value !== Number.NaN && (!isNullOrUndefined(this.value) && !isNullOrUndefined(this.previousDate) && +new Date(this.value.toDateString()) !== +new Date(this.previousDate.toDateString()) || this.previousDate == null
|
|
2503
2503
|
&& !isNaN(+this.value))) {
|
|
2504
2504
|
this.changeEvent(e);
|
|
2505
2505
|
}
|
|
@@ -3734,7 +3734,7 @@ let DatePicker = class DatePicker extends Calendar {
|
|
|
3734
3734
|
this.isPopupClicked = false;
|
|
3735
3735
|
}
|
|
3736
3736
|
documentHandler(e) {
|
|
3737
|
-
if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) ||
|
|
3737
|
+
if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(e.target) && e.type !== 'mousedown' ||
|
|
3738
3738
|
(this.popupObj.element && this.popupObj.element.contains(e.target)))) && e.type !== 'touchstart') {
|
|
3739
3739
|
e.preventDefault();
|
|
3740
3740
|
}
|
|
@@ -8172,7 +8172,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
|
|
|
8172
8172
|
}
|
|
8173
8173
|
const target = e.target;
|
|
8174
8174
|
if (!this.inputWrapper.container.contains(target) ||
|
|
8175
|
-
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]'))) {
|
|
8175
|
+
(!isNullOrUndefined(this.popupObj) && !closest(target, '[id="' + this.popupWrapper.id + '"]') && e.type === 'mousedown')) {
|
|
8176
8176
|
if (e.type !== 'touchstart' && ((e.type === 'mousedown') ||
|
|
8177
8177
|
this.closeEventArgs && !this.closeEventArgs.cancel)) {
|
|
8178
8178
|
e.preventDefault();
|
|
@@ -11242,7 +11242,7 @@ let TimePicker = class TimePicker extends Component {
|
|
|
11242
11242
|
}
|
|
11243
11243
|
documentClickHandler(event) {
|
|
11244
11244
|
const target = event.target;
|
|
11245
|
-
if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) ||
|
|
11245
|
+
if ((!isNullOrUndefined(this.popupObj) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
|
|
11246
11246
|
(this.popupObj.element && this.popupObj.element.contains(target)))) && event.type !== 'touchstart') {
|
|
11247
11247
|
event.preventDefault();
|
|
11248
11248
|
}
|
|
@@ -12363,7 +12363,7 @@ let DateTimePicker = class DateTimePicker extends DatePicker {
|
|
|
12363
12363
|
}
|
|
12364
12364
|
documentClickHandler(event) {
|
|
12365
12365
|
const target = event.target;
|
|
12366
|
-
if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) ||
|
|
12366
|
+
if ((!isNullOrUndefined(this.popupObject) && (this.inputWrapper.container.contains(target) && event.type !== 'mousedown' ||
|
|
12367
12367
|
(this.popupObject.element && this.popupObject.element.contains(target)))) && event.type !== 'touchstart') {
|
|
12368
12368
|
event.preventDefault();
|
|
12369
12369
|
}
|