mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
fixed infinite-loop because editor.isDestroyed would return invalid return
This commit is contained in:
parent
b70c4531dc
commit
631b0cc90f
@ -718,7 +718,7 @@ export class Editor extends EventEmitter<EditorEvents> {
|
||||
* Check if the editor is already destroyed.
|
||||
*/
|
||||
public get isDestroyed(): boolean {
|
||||
return !this.editorView?.isDestroyed
|
||||
return this.editorView?.isDestroyed || false
|
||||
}
|
||||
|
||||
public $node(selector: string, attributes?: { [key: string]: any }): NodePos | null {
|
||||
|
Loading…
Reference in New Issue
Block a user