mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-03 18:06:34 +00:00
Apply suggestion
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
7e55d4dc1f
commit
7f65e6fd2d
@ -543,7 +543,7 @@ function initIssueTemplateCommentEditors(commentForm: HTMLFormElement) {
|
|||||||
showElem(commentForm.querySelectorAll('.combo-editor-dropzone .form-field-real'));
|
showElem(commentForm.querySelectorAll('.combo-editor-dropzone .form-field-real'));
|
||||||
hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor'));
|
hideElem(commentForm.querySelectorAll('.combo-editor-dropzone .combo-markdown-editor'));
|
||||||
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
|
queryElems(commentForm, '.combo-editor-dropzone .form-field-dropzone', (dropzoneContainer) => {
|
||||||
const dropzoneEl = dropzoneContainer.closest<HTMLElement>('.combo-editor-dropzone')?.querySelector<HTMLElement>('.dropzone');
|
const dropzoneEl = dropzoneContainer.closest<HTMLElement>('.combo-editor-dropzone').querySelector<HTMLElement>('.dropzone');
|
||||||
const dzInstance = dropzoneEl?.dropzone;
|
const dzInstance = dropzoneEl?.dropzone;
|
||||||
|
|
||||||
if (dzInstance && dzInstance.files.length === 0) {
|
if (dzInstance && dzInstance.files.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user