Sfoglia il codice sorgente

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

lufei 6 mesi fa
parent
commit
52e115433d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();
     }
   };