Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: #957

robin23b797c1f9f7
diff --git a/ui/src/pages/Questions/Ask/index.tsx b/ui/src/pages/Questions/Ask/index.tsx
index f77a1545..23d4c72f 100644
--- a/ui/src/pages/Questions/Ask/index.tsx
+++ b/ui/src/pages/Questions/Ask/index.tsx
@@ -383,6 +383,16 @@ const Ask = () => {
value={formData.answer.value}
onChange={handleAnswerChange}
ref={editorRef2}
+ className={classNames(
+ 'form-control p-0',
+ focusType === 'answer' && 'focus',
+ )}
+ onFocus={() => {
+ setForceType('answer');
+ }}
+ onBlur={() => {
+ setForceType('');
+ }}
/>
<Form.Control
value={formData.answer.value}