This is an automated email from the ASF dual-hosted git repository.
robin0716 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new 8283c01c fix: update useRenderHtmlPlugin to target specific HTML
element
8283c01c is described below
commit 8283c01cc7a16ad835e8d0dd594febdeeeb13f16
Author: robin <[email protected]>
AuthorDate: Wed Nov 13 11:49:10 2024 +0800
fix: update useRenderHtmlPlugin to target specific HTML element
Related issue: https://github.com/apache/incubator-answer-plugins/issues/245
---
ui/src/pages/Questions/Detail/components/Answer/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/pages/Questions/Detail/components/Answer/index.tsx
b/ui/src/pages/Questions/Detail/components/Answer/index.tsx
index fb4de275..931b1a75 100644
--- a/ui/src/pages/Questions/Detail/components/Answer/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/Answer/index.tsx
@@ -60,7 +60,7 @@ const Index: FC<Props> = ({
const [searchParams] = useSearchParams();
const answerRef = useRef<HTMLDivElement>(null);
- useRenderHtmlPlugin(answerRef);
+ useRenderHtmlPlugin(answerRef.current?.querySelector('.fmt') as HTMLElement);
const acceptAnswer = () => {
acceptanceAnswer({