Explorar o código

Merge pull request #8758 from weseek/fix/144840-tags-are-not-created-when-space--key-is-entered

fix: Tags are not created when space key is entered (Firefox)
Yuki Takei %!s(int64=2) %!d(string=hai) anos
pai
achega
07f1525257
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/app/src/components/PageTags/TagsInput.tsx

+ 1 - 1
apps/app/src/components/PageTags/TagsInput.tsx

@@ -39,7 +39,7 @@ export const TagsInput: FC<Props> = (props: Props) => {
   }, [tagsSearch?.tags]);
 
   const keyDownHandler = useCallback((event: KeyboardEvent<HTMLElement>) => {
-    if (event.key === ' ') {
+    if (event.code === 'Space') {
       event.preventDefault();
 
       // fix: https://redmine.weseek.co.jp/issues/140689