commit 92c7191fac84e7c52387b27b546948f700bd1d4f parent 12754f719bb25aa0b1fae3877e44533fe292b8df Author: Yongbin Kim <iam@yongbin.kim> Date: Sun, 29 Jan 2023 14:45:07 +0900 fix(WikiEditor): Textarea가 children 대신 values prop을 사용하도록 수정 Signed-off-by: Yongbin Kim <iam@yongbin.kim> Diffstat:
M | components/wiki/WikiEditor.tsx | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/components/wiki/WikiEditor.tsx b/components/wiki/WikiEditor.tsx @@ -12,8 +12,10 @@ export default function WikiEditor (props: WikiEditorProps) { } return ( - <textarea className={styles.editor} onChange={handleValueChange}> - {props.value} - </textarea> + <textarea + className={styles.editor} + onChange={handleValueChange} + value={props.value} + /> ) }