From a3e5624d03c902cb2bcb5ef76185cb7c7fda24c9 Mon Sep 17 00:00:00 2001 From: dmson1218 Date: Thu, 7 Dec 2023 16:35:16 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=ED=83=9C=EA=B7=B8=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EC=8B=9C=20=EB=A7=88=EC=A7=80=EB=A7=89=20=EA=B8=80?= =?UTF-8?q?=EC=9E=90=20=EC=A4=91=EB=B3=B5=20=EC=9E=85=EB=A0=A5=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/components/DiaryModal/DiaryCreateModal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FE/src/components/DiaryModal/DiaryCreateModal.js b/FE/src/components/DiaryModal/DiaryCreateModal.js index c7449a3..d746661 100644 --- a/FE/src/components/DiaryModal/DiaryCreateModal.js +++ b/FE/src/components/DiaryModal/DiaryCreateModal.js @@ -142,10 +142,12 @@ function DiaryCreateModal(props) { fontSize='1rem' placeholder='태그를 입력해주세요.' onBlur={(e) => addTag(e)} - onKeyDown={(e) => { + onKeyPress={(e) => { if (e.key === "Enter") { addTag(e); } + }} + onKeyDown={(e) => { if (e.key === "Backspace" && e.target.value.length === 0) { deleteLastTag(); }