Skip to content

Commit 332db1a

Browse files
committed
Fix #78: When object is readonly, additional properties should not be added
1 parent 0342c95 commit 332db1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export function getObjectFormRow(args) {
476476
<FormGroup
477477
level={level}
478478
schema={schema}
479-
addable={schema.additionalProperties}
479+
addable={schema.additionalProperties && !isReadonly}
480480
onAdd={() => handleKeyValueAdd(data, coords, onAdd, schema.additionalProperties, args.getRef)}
481481
editable={args.editable}
482482
onEdit={args.onKeyEdit}

0 commit comments

Comments
 (0)