Explorar o código

only space key

Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
4f7b965a01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/components/Page/TagsInput.tsx

+ 1 - 1
packages/app/src/components/Page/TagsInput.tsx

@@ -49,7 +49,7 @@ const TagsInput: FC<Props> = (props: Props) => {
   };
 
   const handleSelect = (e: React.KeyboardEvent) => {
-    if (e.key === 'Enter' || e.key === ' ') {
+    if (e.key === ' ') {
       e.preventDefault();
 
       const initialItem = tagsInputRef?.current?.state?.initialItem;