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(); }