From 7a6824f861284c5217349d3731aaff2c8893a015 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 23 Aug 2023 19:40:00 +0800 Subject: [PATCH] fix --- web_src/js/features/repo-legacy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 5991df6322c57..3b25c36538678 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -54,9 +54,10 @@ export function initRepoCommentForm() { } if ($commentForm.find('.field.combo-editor-dropzone').length) { - // at the moment, if a form has multiple combo-markdown-editors, it must be a issue template form + // at the moment, if a form has multiple combo-markdown-editors, it must be an issue template form initIssueTemplateCommentEditors($commentForm); - } else { + } else if ($commentForm.find('.combo-markdown-editor').length) { + // it's quite unclear about the "comment form" elements, sometimes it's for issue comment, sometimes it's for file editor/uploader message initSingleCommentEditor($commentForm); }