Skip to content

Commit 1a1ac0f

Browse files
author
pipeline
committed
v18.3.51 is released
1 parent 5799675 commit 1a1ac0f

File tree

206 files changed

+2195
-758
lines changed

Some content is hidden

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

206 files changed

+2195
-758
lines changed

components/base/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 18.3.50 (2020-11-17)
5+
## 18.3.51 (2020-11-24)
6+
7+
### Common
8+
9+
#### Bug Fixes
10+
11+
- `I300269, I301493` - Resolved Memory Leak issue in Angular Components while switching between pages.
12+
- Resolved `Dirty and Pristine` value is not updated when resetting `form` with values.
13+
14+
## 18.3.44 (2020-10-27)
615

716
### Common
817

components/base/dist/ej2-angular-base.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.

components/base/dist/ej2-angular-base.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.

components/base/dist/es6/ej2-angular-base.es2015.js

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

components/base/dist/es6/ej2-angular-base.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.

components/base/dist/es6/ej2-angular-base.es5.js

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

components/base/dist/es6/ej2-angular-base.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.

components/base/dist/global/blazor/angularbase.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ var ComplexBase = /** @class */ (function () {
234234
this.hasChanges = false;
235235
}
236236
};
237+
ComplexBase.prototype.ngOnDestroy = function () {
238+
/* istanbul ignore next */
239+
this.directivePropList = [];
240+
};
237241
return ComplexBase;
238242
}());
239243
var ArrayBase = /** @class */ (function () {
@@ -320,6 +324,9 @@ var ArrayBase = /** @class */ (function () {
320324
ArrayBase.prototype.ngAfterViewInit = function () {
321325
this.isInitChanges = false;
322326
};
327+
ArrayBase.prototype.ngOnDestroy = function () {
328+
this.list = [];
329+
};
323330
return ArrayBase;
324331
}());
325332

@@ -329,6 +336,7 @@ var ArrayBase = /** @class */ (function () {
329336
var ComponentBase = /** @class */ (function () {
330337
function ComponentBase() {
331338
this.isProtectedOnChange = true;
339+
this.isFormInit = true;
332340
}
333341
ComponentBase.prototype.saveChanges = function (key, newValue, oldValue) {
334342
if (this.isProtectedOnChange) {
@@ -352,6 +360,7 @@ var ComponentBase = /** @class */ (function () {
352360
tempOnThis.registeredTemplate = {};
353361
tempOnThis.ngBoundedEvents = {};
354362
tempOnThis.isAngular = true;
363+
tempOnThis.isFormInit = true;
355364
/* istanbul ignore next */
356365
if (isTempRef) {
357366
this.tags = isTempRef.tags;
@@ -466,6 +475,9 @@ var ComponentBase = /** @class */ (function () {
466475
if (typeof window !== 'undefined' && tempOnDestroyThis.element.classList.contains('e-control')) {
467476
tempOnDestroyThis.destroy();
468477
tempOnDestroyThis.clearTemplate(null);
478+
// removing bounded events and tagobjects from component after destroy
479+
tempOnDestroyThis.ngBoundedEvents = {};
480+
tempOnDestroyThis.tagObjects = {};
469481
}
470482
};
471483
//tslint:disable-next-line
@@ -697,6 +709,7 @@ var FormBase = /** @class */ (function () {
697709
ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));
698710
ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));
699711
}
712+
this.isFormInit = false;
700713
// });
701714
};
702715
FormBase.prototype.setDisabledState = function (disabled) {
@@ -725,13 +738,13 @@ var FormBase = /** @class */ (function () {
725738
}
726739
}
727740
this.angularValue = value;
728-
if (value === null) {
729-
return;
730-
}
731741
this.isUpdated = true;
732742
// When binding Html textbox value to syncfusion textbox, change event triggered dynamically.
733743
// To prevent change event, trigger change in component side based on `preventChange` value
734-
this.preventChange = true;
744+
this.preventChange = this.isFormInit ? false : true;
745+
if (value === null) {
746+
return;
747+
}
735748
};
736749
FormBase.prototype.ngOnFocus = function (e) {
737750
/* istanbul ignore else */

0 commit comments

Comments
 (0)