소스 검색

修复输入框报错 导致无法使用问题

lufei 6 달 전
부모
커밋
52e115433d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/CKEditor/index.tsx

+ 1 - 1
src/components/CKEditor/index.tsx

@@ -58,7 +58,7 @@ const Index: ForwardRefRenderFunction<CKEditorRef, CKEditorProps> = (
           writer.setSelection(range);
         });
       }
-      view.focus();
+      view?.focus();
     }
   };