From df7d21e8ca29c6cff459b0ad6481f30255493f78 Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 16 Dec 2022 18:03:13 +0800 Subject: [PATCH] refactor(ui): solve the problem that the focus style is incorrect --- ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx index febdb585..01badd47 100644 --- a/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx +++ b/ui/src/pages/Questions/Detail/components/WriteAnswer/index.tsx @@ -82,6 +82,7 @@ const Index: FC = ({ visible = false, data, callback }) => { handleSubmit(); }; const handleFocusForTextArea = () => { + setForceType('answer'); setShowEditor(true); };