Fix js error when edit issue (#33384)

pull/33387/head
wxiaoguang 6 days ago committed by GitHub
parent 06ff9b6256
commit 7da8a01d39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web_src/js/features/repo-issue-edit.ts

@ -14,7 +14,7 @@ async function tryOnEditContent(e: DOMEvent<MouseEvent>) {
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');

Loading…
Cancel
Save