فهرست منبع

Merge pull request #8682 from weseek/fix/144023-tags-are-unintentionally-created-when-a-conversion-is-finalized

fix: Tags are unintentionally created when a conversion is finalized
Yuki Takei 2 سال پیش
والد
کامیت
91a0e098cb
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      apps/app/src/components/PageTags/TagsInput.tsx

+ 6 - 0
apps/app/src/components/PageTags/TagsInput.tsx

@@ -42,6 +42,12 @@ export const TagsInput: FC<Props> = (props: Props) => {
     if (event.key === ' ') {
       event.preventDefault();
 
+      // fix: https://redmine.weseek.co.jp/issues/140689
+      const isComposing = event.nativeEvent.isComposing;
+      if (isComposing) {
+        return;
+      }
+
       const initialItem = tagsInputRef?.current?.state?.initialItem;
       const handleMenuItemSelect = tagsInputRef?.current?._handleMenuItemSelect;