From 7333104e89a1e1c89342e2445a849f8c33baba89 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 17 Oct 2021 04:30:31 +0800 Subject: [PATCH] Fix the PR review form bug during frontend refactor (#17332) --- web_src/js/features/repo-diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-diff.js b/web_src/js/features/repo-diff.js index 4d6a1a011d..52b68a7d4f 100644 --- a/web_src/js/features/repo-diff.js +++ b/web_src/js/features/repo-diff.js @@ -21,7 +21,7 @@ export function initRepoDiffFileViewToggle() { } export function initRepoDiffConversationForm() { - $('.conversation-holder form').on('submit', async (e) => { + $(document).on('submit', '.conversation-holder form', async (e) => { e.preventDefault(); const form = $(e.target); const newConversationHolder = $(await $.post(form.attr('action'), form.serialize()));