Skip to content

Commit 708c510

Browse files
committed
chore: adjust logic of default class names and field styles
1 parent fa84a73 commit 708c510

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/context/json_schema_provider.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ class JSONSchemaFormDataProvider extends ContextProvider {
4747
get uiSchemaStyled() {
4848
const schema = this.uiSchema;
4949
return _.each(schema, (v, k, l) => {
50-
l[k].classNames = v.classNames
51-
? `${v.classNames} ${this.defaultClassNames}`
52-
: this.defaultClassNames;
50+
l[k] = { ...v, ...this.defaultFieldStyles };
51+
l[k].classNames = `${v.classNames || ""} ${this.defaultClassNames || ""}`;
5352
return null;
5453
});
5554
}

0 commit comments

Comments
 (0)