@ngx-formly/core 5.10.23 → 5.10.24
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/bundles/ngx-formly-core.umd.js +8 -1
- package/bundles/ngx-formly-core.umd.js.map +1 -1
- package/bundles/ngx-formly-core.umd.min.js +1 -1
- package/bundles/ngx-formly-core.umd.min.js.map +1 -1
- package/esm2015/lib/components/formly.field.js +9 -2
- package/esm5/lib/components/formly.field.js +9 -2
- package/fesm2015/ngx-formly-core.js +9 -2
- package/fesm2015/ngx-formly-core.js.map +1 -1
- package/fesm5/ngx-formly-core.js +8 -1
- package/fesm5/ngx-formly-core.js.map +1 -1
- package/package.json +1 -1
package/fesm5/ngx-formly-core.js
CHANGED
|
@@ -1802,9 +1802,15 @@ var FormlyField = /** @class */ (function () {
|
|
|
1802
1802
|
else {
|
|
1803
1803
|
if (currentValue) {
|
|
1804
1804
|
_this.containerRef.clear();
|
|
1805
|
+
if (_this.field.className) {
|
|
1806
|
+
_this.renderer.removeAttribute(_this.elementRef.nativeElement, 'class');
|
|
1807
|
+
}
|
|
1805
1808
|
}
|
|
1806
1809
|
else {
|
|
1807
1810
|
_this.renderField(_this.containerRef, _this.field);
|
|
1811
|
+
if (_this.field.className) {
|
|
1812
|
+
_this.renderer.setAttribute(_this.elementRef.nativeElement, 'class', _this.field.className);
|
|
1813
|
+
}
|
|
1808
1814
|
}
|
|
1809
1815
|
}
|
|
1810
1816
|
})),
|
|
@@ -1814,7 +1820,8 @@ var FormlyField = /** @class */ (function () {
|
|
|
1814
1820
|
*/
|
|
1815
1821
|
function (_a) {
|
|
1816
1822
|
var firstChange = _a.firstChange, currentValue = _a.currentValue;
|
|
1817
|
-
if (!firstChange || (firstChange && currentValue))
|
|
1823
|
+
if ((!firstChange || (firstChange && currentValue))
|
|
1824
|
+
&& (!_this.formlyConfig.extras.lazyRender || (_this.field.hide !== true))) {
|
|
1818
1825
|
_this.renderer.setAttribute(_this.elementRef.nativeElement, 'class', currentValue);
|
|
1819
1826
|
}
|
|
1820
1827
|
})),
|