Skip to content

Commit f305a70

Browse files
author
pipeline
committed
v17.1.44 is released
1 parent 441dcf1 commit f305a70

File tree

331 files changed

+9669
-2288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+9669
-2288
lines changed

controls/base/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 17.1.43 (2019-04-30)
5+
## 17.1.44 (2019-05-07)
66

77
### Common
88

controls/calendars/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
- #143352 - Now, the DatePicker fires input's blur when click outside without select the date from calendar popup.
1010

11+
- #233877 - Now, you can enter the same date value after form reset.
12+
13+
### DateTimePicker
14+
15+
- #233877 - Now, you can enter the same datetime value after form reset.
16+
1117
## 17.1.42 (2019-04-23)
1218

1319
### DateRangePicker

controls/calendars/dist/ej2-calendars.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/ej2-calendars.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es2015.js

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es2015.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es5.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,8 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
31183118
DatePicker.prototype.restoreValue = function () {
31193119
this.currentDate = this.value ? this.value : new Date();
31203120
this.previousDate = this.value;
3121-
this.previousElementValue = this.inputElement.value;
3121+
this.previousElementValue = (isNullOrUndefined(this.inputValueCopy)) ? '' :
3122+
this.globalize.formatDate(this.inputValueCopy, { format: this.formatString, type: 'dateTime', skeleton: 'yMd' });
31223123
};
31233124
DatePicker.prototype.inputChangeHandler = function (e) {
31243125
e.stopPropagation();
@@ -6779,6 +6780,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
67796780
}
67806781
};
67816782
DateRangePicker.prototype.applyFunction = function (eve) {
6783+
var isValueChanged = false;
67826784
eve.preventDefault();
67836785
if (this.closeEventArgs && this.closeEventArgs.cancel) {
67846786
this.startValue = this.popupWrapper.querySelector('.e-start-date') &&
@@ -6801,13 +6803,20 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
68016803
this.previousEndValue = new Date(+this.endValue);
68026804
this.previousEleValue = this.inputElement.value;
68036805
Input.setValue(this.rangeArgs(eve).text, this.inputElement, this.floatLabelType, this.showClearButton);
6806+
if (+this.initStartDate !== +this.startValue || +this.initEndDate !== +this.endValue) {
6807+
isValueChanged = true;
6808+
}
68046809
this.changeTrigger(eve);
68056810
this.hide(eve ? eve : null);
68066811
this.errorClass();
68076812
}
68086813
else {
68096814
this.hide(eve ? eve : null);
68106815
}
6816+
if (!(closest(eve.target, '.' + INPUTCONTAINER$1))
6817+
&& (!isValueChanged)) {
6818+
this.focusOut();
6819+
}
68116820
if (!this.isMobile) {
68126821
this.isKeyPopup = false;
68136822
if (this.isRangeIconClicked) {
@@ -11715,7 +11724,8 @@ var DateTimePicker = /** @__PURE__ @class */ (function (_super) {
1171511724
this.currentDate = this.value ? this.value : new Date();
1171611725
this.valueWithMinutes = this.value;
1171711726
this.previousDate = this.value;
11718-
this.previousElementValue = this.inputElement.value;
11727+
this.previousElementValue = this.previousElementValue = (isNullOrUndefined(this.inputValueCopy)) ? '' :
11728+
this.getFormattedValue(this.inputValueCopy);
1171911729
};
1172011730
__decorate$4([
1172111731
Property(null)

controls/calendars/dist/es6/ej2-calendars.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/ej2-calendars.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/ej2-calendars.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)