From ec82636f365abf67c72e5248534004a119bbd967 Mon Sep 17 00:00:00 2001 From: "zhili.wzl" Date: Sat, 23 Oct 2021 15:50:43 +0800 Subject: [PATCH] feat(core): add takeSnapshot to content editable --- packages/core/src/effects/useContentEditableEffect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/effects/useContentEditableEffect.ts b/packages/core/src/effects/useContentEditableEffect.ts index b7b19ab40..f12555b58 100644 --- a/packages/core/src/effects/useContentEditableEffect.ts +++ b/packages/core/src/effects/useContentEditableEffect.ts @@ -82,6 +82,7 @@ export const useContentEditableEffect = (engine: Engine) => { target?.textContent ) requestIdle(() => { + node.takeSnapshot('update:node:props') restore() }) }