Skip to content

Commit

Permalink
fix: 파일 전송 중이라는 문구가 뜰 때도 입력 못하도록 막기
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Jul 30, 2024
1 parent c639a09 commit f465c8a
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 || (uploadPercent >= 0 && uploadPercent < 100)}
disabled={
disabled ||
isReview ||
(uploadPercent >= 0 && uploadPercent < 100) ||
(uploadPercent === 100 && fileName === '')
}
/>
<label
htmlFor={`file-${id}`}
Expand Down

0 comments on commit f465c8a

Please sign in to comment.