Skip to content

Commit

Permalink
Merge pull request json-editor#678 from hybtalented/master
Browse files Browse the repository at this point in the history
bugfix: Object editor throw error in ie10 and multiple editor create the links twice
  • Loading branch information
schmunk42 authored Mar 18, 2020
2 parents e02ff01 + ab7cb96 commit 74942e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/editors/multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,5 +334,8 @@ export class MultipleEditor extends AbstractEditor {
editor.showValidationErrors(errors)
})
}
},
addLinks: function () {
// multiple editor itself don't create links
}
}
2 changes: 1 addition & 1 deletion src/editors/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ export class ObjectEditor extends AbstractEditor {
self.toggleEditJSON()
})
this.controls.appendChild(this.editjson_control)
this.controls.insertBefore(this.editjson_holder, this.controls.childNodes[1])
this.controls.insertBefore(this.editjson_holder, this.controls.childNodes[0])

/* Edit JSON Buttton disabled */
if (this.schema.options && typeof this.schema.options.disable_edit_json !== 'undefined') {
Expand Down

0 comments on commit 74942e1

Please sign in to comment.