Skip to content

Commit

Permalink
[Fix] 파일 업로드 하는 동안 새로운 파일 업로드 못하도록 막기 (#320)
Browse files Browse the repository at this point in the history
* fix: file upload 시 disable 처리

* fix: 파일 전송 중이라는 문구가 뜰 때도 입력 못하도록 막기
  • Loading branch information
eonseok-jeon authored Jul 30, 2024
1 parent dc575ed commit d979585
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/ApplyPage/components/FileInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ const FileInput = ({ section, id, isReview, disabled, defaultFile }: FileInputPr
onChange={(e) => handleFileChange(e, id)}
ref={inputRef}
className={fileInput}
disabled={disabled || isReview}
disabled={
disabled ||
isReview ||
(uploadPercent >= 0 && uploadPercent < 100) ||
(uploadPercent === 100 && fileName === '')
}
/>
<label
htmlFor={`file-${id}`}
Expand Down

0 comments on commit d979585

Please sign in to comment.