We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f65e6f commit c606832Copy full SHA for c606832
web_src/js/features/repo-issue.ts
@@ -545,10 +545,8 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
545
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
546
const dropzoneEl = dropzoneContainer.closest<HTMLElement>('.combo-editor-dropzone').querySelector<HTMLElement>('.dropzone');
547
const dzInstance = dropzoneEl?.dropzone;
548
-
549
- if (dzInstance && dzInstance.files.length === 0) {
550
- hideElem(dropzoneContainer);
551
- }
+ const hasUploadedFiles = Boolean(dzInstance?.files.length);
+ toggleElem(dropzoneContainer, hasUploadedFiles);
552
});
553
554
// activate this markdown editor
0 commit comments