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
7f65e6fd2d
commit
c6068328e2
@ -545,10 +545,8 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
|
||||
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
|
||||
const dropzoneEl = dropzoneContainer.closest<HTMLElement>('.combo-editor-dropzone').querySelector<HTMLElement>('.dropzone');
|
||||
const dzInstance = dropzoneEl?.dropzone;
|
||||
|
||||
if (dzInstance && dzInstance.files.length === 0) {
|
||||
hideElem(dropzoneContainer);
|
||||
}
|
||||
const hasUploadedFiles = Boolean(dzInstance?.files.length);
|
||||
toggleElem(dropzoneContainer, hasUploadedFiles);
|
||||
});
|
||||
|
||||
// activate this markdown editor
|
||||
|
Loading…
Reference in New Issue
Block a user