From 7da8a01d3967cf94190d8ec88dfeac834ab1f80d Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 25 Jan 2025 09:37:25 +0800 Subject: [PATCH] Fix js error when edit issue (#33384) --- web_src/js/features/repo-issue-edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-issue-edit.ts b/web_src/js/features/repo-issue-edit.ts index a3a13a156d7..f3e8a0bebab 100644 --- a/web_src/js/features/repo-issue-edit.ts +++ b/web_src/js/features/repo-issue-edit.ts @@ -14,7 +14,7 @@ async function tryOnEditContent(e: DOMEvent) { if (!clickTarget) return; e.preventDefault(); - const segment = clickTarget.closest('.header').nextElementSibling; + const segment = clickTarget.closest('.comment-header').nextElementSibling; const editContentZone = segment.querySelector('.edit-content-zone'); const renderContent = segment.querySelector('.render-content'); const rawContent = segment.querySelector('.raw-content');