This is an automated email from the ASF dual-hosted git repository. robin0716 pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
commit 0dfcf9c17f8a233bbd8b80fd638cbe379a8fe8df Author: robin <[email protected]> AuthorDate: Fri Nov 8 15:17:01 2024 +0800 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 46db93a..16037e5 100644 --- a/editor-formula/hooks.ts +++ b/editor-formula/hooks.ts @@ -60,6 +60,7 @@ const useRenderFormula = (element: HTMLElement | RefObject<HTMLElement> | null) observer.observe(targetElement, { childList: true, + subtree: true, }); return () => {
