This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch fix/editor-formula
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit f39ecd41007ce9d95861eebd3712fb7a5034ea46
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 () => {

Reply via email to