Explorar o código

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

lufei hai 6 meses
pai
achega
52e115433d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
     }
   };