张延森 3 년 전
부모
커밋
c64c88b056
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/components/rich-editor/index.jsx

+ 2
- 2
src/components/rich-editor/index.jsx 파일 보기

@@ -26,12 +26,12 @@ export default (props) => {
26 26
 
27 27
   useEffect(() => {
28 28
     if (editorRef.current && !initedRef.current) {
29
-      if (props.initd) {
29
+      if (props.inited) {
30 30
         initedRef.current = true
31 31
         editorRef.current.setContent(props.value)
32 32
       }
33 33
     }
34
-  }, [props.value, props.initd])
34
+  }, [props.value, props.inited])
35 35
 
36 36
   return (
37 37
     <textarea id={id} />