Skip to content

Commit bcdf7ae

Browse files
author
pipeline
committed
v18.2.44 is released
1 parent 7a2cd9b commit bcdf7ae

File tree

84 files changed

+541
-532
lines changed

Some content is hidden

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

84 files changed

+541
-532
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
Check the license detail [here](https://github.com/syncfusion/ej2-react-ui-components/blob/master/license).
3939
## Changelog
4040
Check the changelog [here](https://ej2.syncfusion.com/react/documentation/release-notes?utm_source=npm&utm_campaign=ej2-react-ui-components)
41-
© Copyright 2018 Syncfusion, Inc. All Rights Reserved.
41+
© Copyright 2020 Syncfusion, Inc. All Rights Reserved.
4242
The Syncfusion Essential Studio license and copyright applies to this distribution.

components/base/CHANGELOG.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
## [Unreleased]
44

5-
## 18.1.59 (2020-06-23)
6-
7-
### Common
8-
9-
- `#276826` Resolved the peer dependency warnings with React version.
10-
11-
## 18.1.36-beta (2020-03-19)
5+
## 18.2.44 (2020-07-07)
126

137
### Common
148

159
#### Bug Fixes
1610

1711
- Resolved the `delayUpdate` property type issue.
12+
- `I276587` - Resolved property updating issue in functional components.
1813

1914
## 17.2.48-beta (2019-08-28)
2015

components/base/dist/ej2-react-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-react-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-react-base.es2015.js

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

components/base/dist/es6/ej2-react-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-react-base.es5.js

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

components/base/dist/es6/ej2-react-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/reactbase.js

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,22 @@ var ComponentBase = /** @class */ (function (_super) {
8282
* @private
8383
*/
8484
ComponentBase.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) {
85-
var _this = this;
8685
if (!this.initRenderCalled) {
86+
this.updateProperties(nextProps, true);
8787
return;
8888
}
8989
if (!this.isAppendCalled) {
9090
clearTimeout(this.cachedTimeOut);
9191
this.isAppendCalled = true;
9292
this.appendTo(ReactDOM.findDOMNode(this));
9393
}
94+
this.updateProperties(nextProps);
95+
};
96+
/**
97+
* @private
98+
*/
99+
ComponentBase.prototype.updateProperties = function (nextProps, silent) {
100+
var _this = this;
94101
var dProps = sf.base.extend({}, nextProps);
95102
var keys = Object.keys(nextProps);
96103
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
@@ -117,22 +124,24 @@ var ComponentBase = /** @class */ (function (_super) {
117124
delete dProps['children'];
118125
}
119126
// tslint:disable-next-line:no-any
120-
if (this.canDelayUpdate || this.props.delayUpdate) {
127+
if (this.initRenderCalled && (this.canDelayUpdate || this.props.delayUpdate)) {
121128
setTimeout(function () {
122-
_this.refreshProperties(dProps, nextProps);
129+
_this.refreshProperties(dProps, nextProps, silent);
123130
});
124131
}
125132
else {
126-
this.refreshProperties(dProps, nextProps);
133+
this.refreshProperties(dProps, nextProps, silent);
127134
}
128135
};
129-
ComponentBase.prototype.refreshProperties = function (dProps, nextProps) {
136+
ComponentBase.prototype.refreshProperties = function (dProps, nextProps, silent) {
130137
if (Object.keys(dProps).length) {
131-
// tslint:disable-next-line:no-any
132-
this.processComplexTemplate(dProps, this);
133-
this.setProperties(dProps);
138+
if (!silent) {
139+
// tslint:disable-next-line:no-any
140+
this.processComplexTemplate(dProps, this);
141+
}
142+
this.setProperties(dProps, silent);
134143
}
135-
this.refreshChild(false, nextProps);
144+
this.refreshChild(silent, nextProps);
136145
};
137146
ComponentBase.prototype.processComplexTemplate = function (curObject, context) {
138147
var compTemplate = context.complexTemplate;
@@ -214,7 +223,10 @@ var ComponentBase = /** @class */ (function (_super) {
214223
};
215224
ComponentBase.prototype.componentWillUnmount = function () {
216225
clearTimeout(this.cachedTimeOut);
217-
this.destroy();
226+
// tslint:disable-next-line:no-any
227+
if (this.initRenderCalled) {
228+
this.destroy();
229+
}
218230
};
219231
/* tslint:disable:no-any */
220232
ComponentBase.prototype.validateChildren = function (childCache, mapper, props) {
@@ -703,6 +715,7 @@ exports.compile = compile;
703715
return exports;
704716

705717
});
718+
sfBlazor.libs.push("reactbase")
706719
sfBlazor.loadDependencies(["react","reactdom","base"], () => {
707720
sf.reactbase = sf.reactbase({});
708721
});

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

0 commit comments

Comments
 (0)