Yuki Takei преди 2 години
родител
ревизия
dce5c80499
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      packages/editor/src/components/CodeMirrorEditor/Toolbar/AttachmentsDropdownItem.tsx

+ 4 - 0
packages/editor/src/components/CodeMirrorEditor/Toolbar/AttachmentsDropdownItem.tsx

@@ -28,12 +28,16 @@ export const AttachmentsDropdownItem = (props: Props): JSX.Element => {
     getInputProps,
     open,
   } = useFileDropzone({
+    // close after uploading
+    // https://github.com/weseek/growi/pull/8564
     onUpload: (files: File[]) => { onUpload?.(files); onClose?.() },
     acceptedUploadFileType,
     dropzoneOpts: {
       noClick: true,
       noDrag: true,
       noKeyboard: true,
+      // close after cancelling
+      // https://github.com/weseek/growi/pull/8564
       onFileDialogCancel: onClose,
     },
   });