@blocksuite/inline
Advanced tools
Comparing version 0.11.0-nightly-202312251014-dfaa517 to 0.11.0-nightly-202312260807-8b72dc1
@@ -153,3 +153,5 @@ import { assertExists, DisposableGroup, Slot } from '@blocksuite/global/utils'; | ||
unmount() { | ||
render(nothing, this.rootElement); | ||
if (this.rootElement.isConnected) { | ||
render(nothing, this.rootElement); | ||
} | ||
this.rootElement.removeAttribute(INLINE_ROOT_ATTR); | ||
@@ -176,2 +178,4 @@ this._rootElement = null; | ||
rerenderWholeEditor() { | ||
if (!this.rootElement.isConnected) | ||
return; | ||
render(nothing, this.rootElement); | ||
@@ -178,0 +182,0 @@ this._deltaService.render().catch(console.error); |
@@ -115,2 +115,4 @@ import { assertExists } from '@blocksuite/global/utils'; | ||
this._isComposing = false; | ||
if (!this.editor.rootElement.isConnected) | ||
return; | ||
this.editor.rerenderWholeEditor(); | ||
@@ -117,0 +119,0 @@ await this.editor.waitForUpdate(); |
{ | ||
"name": "@blocksuite/inline", | ||
"version": "0.11.0-nightly-202312251014-dfaa517", | ||
"version": "0.11.0-nightly-202312260807-8b72dc1", | ||
"description": "A micro editor.", | ||
@@ -27,3 +27,3 @@ "type": "module", | ||
"zod": "^3.22.4", | ||
"@blocksuite/global": "0.11.0-nightly-202312251014-dfaa517" | ||
"@blocksuite/global": "0.11.0-nightly-202312260807-8b72dc1" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -237,3 +237,5 @@ import { assertExists, DisposableGroup, Slot } from '@blocksuite/global/utils'; | ||
unmount() { | ||
render(nothing, this.rootElement); | ||
if (this.rootElement.isConnected) { | ||
render(nothing, this.rootElement); | ||
} | ||
this.rootElement.removeAttribute(INLINE_ROOT_ATTR); | ||
@@ -265,2 +267,3 @@ this._rootElement = null; | ||
rerenderWholeEditor() { | ||
if (!this.rootElement.isConnected) return; | ||
render(nothing, this.rootElement); | ||
@@ -267,0 +270,0 @@ this._deltaService.render().catch(console.error); |
@@ -179,2 +179,4 @@ import { assertExists } from '@blocksuite/global/utils'; | ||
this._isComposing = false; | ||
if (!this.editor.rootElement.isConnected) return; | ||
this.editor.rerenderWholeEditor(); | ||
@@ -181,0 +183,0 @@ await this.editor.waitForUpdate(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
546165
8702
+ Added@blocksuite/global@0.11.0-nightly-202312260807-8b72dc1(transitive)
- Removed@blocksuite/global@0.11.0-nightly-202312251014-dfaa517(transitive)
Updated@blocksuite/global@0.11.0-nightly-202312260807-8b72dc1