@stemy/ngx-dynamic-form 19.8.22 → 19.9.0
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.
|
@@ -917,7 +917,7 @@ class DynamicFormBuilderService {
|
|
|
917
917
|
}
|
|
918
918
|
getLabel(key, label, labelPrefix, parent, options, legacyPrefix = "") {
|
|
919
919
|
options = options || { labelPrefix: "" };
|
|
920
|
-
labelPrefix = labelPrefix
|
|
920
|
+
labelPrefix = String(labelPrefix ?? options.labelPrefix ?? "");
|
|
921
921
|
if (ObjectUtils.isFunction(options.labelCustomizer)) {
|
|
922
922
|
const customLabel = options.labelCustomizer(key, label, parent, labelPrefix);
|
|
923
923
|
if (ObjectUtils.isString(customLabel))
|
|
@@ -943,7 +943,7 @@ class DynamicFormBuilderService {
|
|
|
943
943
|
}
|
|
944
944
|
const disabled = ReflectUtils.resolve(data.disabled, this.injector);
|
|
945
945
|
const hidden = ReflectUtils.resolve(data.hidden, this.injector);
|
|
946
|
-
const prefix =
|
|
946
|
+
const prefix = data.labelPrefix ?? parent?.labelPrefix;
|
|
947
947
|
const field = {
|
|
948
948
|
...this.createFormSerializer(key, data),
|
|
949
949
|
fieldSet: String(data.fieldSet || ""),
|