mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
fix: editor don't has contentComponent attribute when suggestion onUpdate (#2916)
Co-authored-by: 周洋 <yang.zhou02@mihoyo.com>
This commit is contained in:
parent
940c00abb8
commit
6674e69b12
@ -21,7 +21,7 @@ export class VueRenderer {
|
||||
|
||||
// prevents `Avoid mutating a prop directly` error message
|
||||
// Fix: `VueNodeViewRenderer` change vue Constructor `config.silent` not working
|
||||
const currentVueConstructor = this.ref.$props.editor.contentComponent?.$options._base ?? Vue // eslint-disable-line
|
||||
const currentVueConstructor = this.ref.$props.editor?.contentComponent?.$options._base ?? Vue // eslint-disable-line
|
||||
const originalSilent = currentVueConstructor.config.silent
|
||||
|
||||
currentVueConstructor.config.silent = true
|
||||
|
Loading…
Reference in New Issue
Block a user