Skip to content

Commit fcba332

Browse files
authored
Merge pull request #260 from WeGo-Together/somang-fix/create-group
fix: 모임생성 Tag 추가 시 Mobile 환경의 Enter도 감지하도록 event.code에서 event.key로 변경
2 parents 7689de5 + 60b9082 commit fcba332

File tree

1 file changed

+1
-1
lines changed
  • src/components/pages/create-group/fields/tags-field

1 file changed

+1
-1
lines changed

src/components/pages/create-group/fields/tags-field/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const GroupTagsField = ({ field }: Props) => {
1717
const [inputValue, setInputValue] = useState('');
1818

1919
const onEnter = (e: React.KeyboardEvent<HTMLInputElement>) => {
20-
if (e.code !== 'Enter' && e.code !== 'NumpadEnter') return;
20+
if (e.key !== 'Enter') return;
2121
if (e.nativeEvent.isComposing) return;
2222

2323
const isUniqueTag = !field.state.value.includes(inputValue);

0 commit comments

Comments
 (0)