Jelajahi Sumber

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

lufei 6 bulan lalu
induk
melakukan
52e115433d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();
     }
   };