mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-29 07:19:26 +00:00
Apply suggestion
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
0e949d45af
commit
86e0932970
@ -544,7 +544,7 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
|
||||
hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor'));
|
||||
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
|
||||
// if "form-field-dropzone" exists, then "dropzone" must also exist
|
||||
const dropzone = dropzoneContainer.querySelector('.dropzone').dropzone;
|
||||
const dropzone = dropzoneContainer.querySelector<HTMLElement>('.dropzone').dropzone;
|
||||
const hasUploadedFiles = dropzone.files.length !== 0;
|
||||
toggleElem(dropzoneContainer, hasUploadedFiles);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user