diff --git a/public/react/src/modules/forums/MemoDetailMDEditor.js b/public/react/src/modules/forums/MemoDetailMDEditor.js index 00a87274d..86b95e629 100644 --- a/public/react/src/modules/forums/MemoDetailMDEditor.js +++ b/public/react/src/modules/forums/MemoDetailMDEditor.js @@ -52,6 +52,7 @@ class MemoDetailMDEditor extends Component { errorMsg: '' }) }) + commentMDEditor.cm.focus() }, { watch: false, dialogLockScreen: false, @@ -119,7 +120,7 @@ class MemoDetailMDEditor extends Component { this.initMDEditor() } else { setTimeout(() => { - this.commentMDEditor.focus() + this.commentMDEditor.cm.focus() }, 10) } }