This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit fcecc07f5ed54658e4d897b4f62e11dbdb579727 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({
