浏览代码

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

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();
     }
   };