Skip to content

Commit

Permalink
fix: #98
Browse files Browse the repository at this point in the history
* apply a breaking change

Apply vanilla-jsoneditor v1 breaking change related to the createJSONEditor instead of new JSONEditor

* fix: #98

---------

Co-authored-by: Cloyd Lau <31238760+cloydlau@users.noreply.github.com>
  • Loading branch information
arkhaiel and cloydlau authored Oct 8, 2024
1 parent fd41414 commit 69bbc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { JSONContent, JSONEditorPropsOptional, TextContent } from 'vanilla-
import type { App, Plugin, PropType } from 'vue-demi'
import { destr, safeDestr } from 'destr'
import { debounce } from 'lodash-es'
import { JSONEditor, Mode } from 'vanilla-jsoneditor'
import { createJSONEditor, Mode } from 'vanilla-jsoneditor'
import { computed, defineComponent, getCurrentInstance, h, isVue3, onMounted, onUnmounted, ref, unref, watch, watchEffect } from 'vue-demi'
import { conclude, resolveConfig } from 'vue-global-config'
import { PascalCasedName as name } from '../package.json'
Expand Down Expand Up @@ -201,7 +201,7 @@ const JsonEditorVue = defineComponent({
},
)

jsonEditor.value = new JSONEditor({
jsonEditor.value = createJSONEditor({
target: currentInstance?.$refs.jsonEditorRef as Element,
props: initialAttrs,
})
Expand Down

0 comments on commit 69bbc18

Please sign in to comment.