Skip to content

Commit 7da8a01

Browse files
authored
Fix js error when edit issue (#33384)
1 parent 06ff9b6 commit 7da8a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-issue-edit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function tryOnEditContent(e: DOMEvent<MouseEvent>) {
1414
if (!clickTarget) return;
1515

1616
e.preventDefault();
17-
const segment = clickTarget.closest('.header').nextElementSibling;
17+
const segment = clickTarget.closest('.comment-header').nextElementSibling;
1818
const editContentZone = segment.querySelector('.edit-content-zone');
1919
const renderContent = segment.querySelector('.render-content');
2020
const rawContent = segment.querySelector('.raw-content');

0 commit comments

Comments
 (0)