From 1afdb68143fc2c079c8f361ef4804f17ef0cb3c6 Mon Sep 17 00:00:00 2001 From: fundon Date: Thu, 26 Dec 2024 08:08:11 +0000 Subject: [PATCH] fix(core): disable re-rendering of pdf embed view (#9334) --- .../block-suite-editor/specs/custom/spec-patchers.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx index 0b2af7822c..26798f5275 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx @@ -604,7 +604,10 @@ export function patchForMobile() { } export function patchForAttachmentEmbedViews( - reactToLit: (element: ElementOrFactory) => TemplateResult + reactToLit: ( + element: ElementOrFactory, + rerendering?: boolean + ) => TemplateResult ): ExtensionType { return { setup: di => { @@ -626,7 +629,8 @@ export function patchForAttachmentEmbedViews( reactToLit( - + , + false ), })); },