소스 검색

add comment

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,
     },
   });