Skip to content

Commit 091c7e9

Browse files
committed
Fixed to expand refs before creating root editor
1 parent 3556159 commit 091c7e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ JSONEditor.prototype = {
4646
self.validator = new JSONEditor.Validator(self,null,validator_options);
4747

4848
// Create the root editor
49-
var editor_class = self.getEditorClass(self.schema);
49+
var schema = self.expandRefs(self.schema);
50+
var editor_class = self.getEditorClass(schema);
5051
self.root = self.createEditor(editor_class, {
5152
jsoneditor: self,
52-
schema: self.schema,
53+
schema: schema,
5354
required: true,
5455
container: self.root_container
5556
});

0 commit comments

Comments
 (0)