Skip to content

Commit da698a7

Browse files
maximltphilippjfr
authored andcommitted
update jsoneditor menu option (#8085)
1 parent 1af8ab7 commit da698a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panel/models/jsoneditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class JSONEditorView extends HTMLBoxView {
3333
this.editor.options.templates = this.model.templates
3434
})
3535
this.on_change([menu], () => {
36-
this.editor.options.menu = this.model.menu
36+
this.editor.options.mainMenuBar = this.model.menu
3737
})
3838
this.on_change([search], () => {
3939
this.editor.options.search = this.model.search
@@ -64,7 +64,7 @@ export class JSONEditorView extends HTMLBoxView {
6464
super.render()
6565
const mode = this.model.disabled ? "view": this.model.mode
6666
this.editor = new (window as any).JSONEditor(this.shadow_el, {
67-
menu: this.model.menu,
67+
mainMenuBar: this.model.menu,
6868
mode,
6969
onChangeJSON: (json: any) => {
7070
this.model.data = json

0 commit comments

Comments
 (0)