From f39ecd41007ce9d95861eebd3712fb7a5034ea46 Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 8 Nov 2024 15:17:01 +0800 Subject: [PATCH 1/2] fix: enable subtree observation in useRenderFormula --- editor-formula/hooks.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/editor-formula/hooks.ts b/editor-formula/hooks.ts index 46db93ab..16037e5a 100644 --- a/editor-formula/hooks.ts +++ b/editor-formula/hooks.ts @@ -60,6 +60,7 @@ const useRenderFormula = (element: HTMLElement | RefObject | null) observer.observe(targetElement, { childList: true, + subtree: true, }); return () => { From 7f3574a3e24a724a7a6ea113403a1b86a7e276ec Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 8 Nov 2024 15:17:22 +0800 Subject: [PATCH 2/2] fix: bump version to 1.2.12 in info.yaml --- editor-formula/info.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor-formula/info.yaml b/editor-formula/info.yaml index 7aeefee5..4ad40789 100644 --- a/editor-formula/info.yaml +++ b/editor-formula/info.yaml @@ -17,6 +17,6 @@ slug_name: formula_editor type: editor -version: 1.2.11 +version: 1.2.12 author: answerdev link: https://github.com/apache/incubator-answer-plugins/tree/main/editor-formula