Skip to content

Commit

Permalink
refactor: (#55) 선택지 TextArea, FileInput 에 name 속성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
inyeong-kang committed Jul 18, 2023
1 parent fe55e2f commit 4633f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function OptionUploadImageButton({
<S.Label htmlFor={id} aria-label="선택지 이미지 업로드 버튼" title="이미지 업로드">
<S.Image src={photoIcon} alt="" />
</S.Label>
<S.FileInput id={id} type="file" accept="image/*" {...rest} />
<S.FileInput id={id} name={id} type="file" accept="image/*" {...rest} />
</S.Container>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function WritingVoteOption({
<S.OptionContainer>
<S.ContentContainer>
<S.ContentTextArea
name={String(optionId)}
defaultValue={text}
onChange={handleTextChange}
placeholder="내용을 입력해주세요."
Expand Down

0 comments on commit 4633f8b

Please sign in to comment.