aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-issue-edit.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-issue-edit.ts')
-rw-r--r--web_src/js/features/repo-issue-edit.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/features/repo-issue-edit.ts b/web_src/js/features/repo-issue-edit.ts
index cf4c223e03..38dfea4743 100644
--- a/web_src/js/features/repo-issue-edit.ts
+++ b/web_src/js/features/repo-issue-edit.ts
@@ -30,6 +30,9 @@ async function tryOnEditContent(e) {
const saveAndRefresh = async (e) => {
e.preventDefault();
+ // we are already in a form, do not bubble up to the document otherwise there will be other "form submit handlers"
+ // at the moment, the form submit event conflicts with initRepoDiffConversationForm (global '.conversation-holder form' event handler)
+ e.stopPropagation();
renderContent.classList.add('is-loading');
showElem(renderContent);
hideElem(editContentZone);