From 25b534fd0d4a9914efbb7c58f654efc4788de5ff Mon Sep 17 00:00:00 2001 From: dutexion Date: Thu, 2 May 2024 22:15:59 +0900 Subject: [PATCH] =?UTF-8?q?fix=20::=20backspace=EB=A1=9C=20=ED=95=99?= =?UTF-8?q?=EC=83=9D=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Team/Create.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Team/Create.tsx b/src/pages/Team/Create.tsx index ffa5e9a..30dcf98 100644 --- a/src/pages/Team/Create.tsx +++ b/src/pages/Team/Create.tsx @@ -68,7 +68,7 @@ export const TeamCreate = () => { }; const onKeydownBackspace = (e: React.KeyboardEvent) => { - if (selectedStudent && e.code === 'Backspace') { + if (selectedStudent && e.code === 'Backspace' && studentAddition.length === 0) { onDelete(selectedStudent.length - 1); addInputRef.current?.focus(); }