Skip to content

Commit 17c1351

Browse files
committed
Merge branch 'pr/439'
2 parents 507feb2 + f35dfba commit 17c1351

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/editors/object.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,10 @@ JSONEditor.defaults.editors.object = JSONEditor.AbstractEditor.extend({
661661
this._super(editor);
662662
},
663663
canHaveAdditionalProperties: function() {
664-
return (this.schema.additionalProperties === true) || !this.jsoneditor.options.no_additional_properties;
664+
if (typeof this.schema.additionalProperties === "boolean") {
665+
return this.schema.additionalProperties;
666+
}
667+
return !this.jsoneditor.options.no_additional_properties;
665668
},
666669
destroy: function() {
667670
$each(this.cached_editors, function(i,el) {

0 commit comments

Comments
 (0)