From d9795854172474c41bd78c9a32185daf3dc2bf0a Mon Sep 17 00:00:00 2001 From: Eonseok Jeon <121864459+eonseok-jeon@users.noreply.github.com> Date: Wed, 31 Jul 2024 08:09:12 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=ED=8C=8C=EC=9D=BC=20=EC=97=85=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=ED=95=98=EB=8A=94=20=EB=8F=99=EC=95=88=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=EC=9A=B4=20=ED=8C=8C=EC=9D=BC=20=EC=97=85=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EB=AA=BB=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=A7=89?= =?UTF-8?q?=EA=B8=B0=20(#320)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: file upload 시 disable 처리 * fix: 파일 전송 중이라는 문구가 뜰 때도 입력 못하도록 막기 --- src/views/ApplyPage/components/FileInput/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/ApplyPage/components/FileInput/index.tsx b/src/views/ApplyPage/components/FileInput/index.tsx index 03a2bc57..3029a67a 100644 --- a/src/views/ApplyPage/components/FileInput/index.tsx +++ b/src/views/ApplyPage/components/FileInput/index.tsx @@ -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 === '') + } />