@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
|
@@ -1857,9 +1857,15 @@
|
|
|
1857
1857
|
else {
|
|
1858
1858
|
if (currentValue) {
|
|
1859
1859
|
_this.containerRef.clear();
|
|
1860
|
+
if (_this.field.className) {
|
|
1861
|
+
_this.renderer.removeAttribute(_this.elementRef.nativeElement, 'class');
|
|
1862
|
+
}
|
|
1860
1863
|
}
|
|
1861
1864
|
else {
|
|
1862
1865
|
_this.renderField(_this.containerRef, _this.field);
|
|
1866
|
+
if (_this.field.className) {
|
|
1867
|
+
_this.renderer.setAttribute(_this.elementRef.nativeElement, 'class', _this.field.className);
|
|
1868
|
+
}
|
|
1863
1869
|
}
|
|
1864
1870
|
}
|
|
1865
1871
|
})),
|
|
@@ -1868,7 +1874,8 @@
|
|
|
1868
1874
|
* @return {?}
|
|
1869
1875
|
*/function (_a) {
|
|
1870
1876
|
var firstChange = _a.firstChange, currentValue = _a.currentValue;
|
|
1871
|
-
if (!firstChange || (firstChange && currentValue))
|
|
1877
|
+
if ((!firstChange || (firstChange && currentValue))
|
|
1878
|
+
&& (!_this.formlyConfig.extras.lazyRender || (_this.field.hide !== true))) {
|
|
1872
1879
|
_this.renderer.setAttribute(_this.elementRef.nativeElement, 'class', currentValue);
|
|
1873
1880
|
}
|
|
1874
1881
|
})),
|