Fix JS error when creating new issue (#31383)

Fix #31336
This commit is contained in:
wxiaoguang 2024-06-16 10:07:21 +08:00 committed by GitHub
parent c70d4f03c9
commit f446e3b4ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,7 +272,7 @@ export function initRepoCommentForm() {
} }
$list.find('.selected').html(` $list.find('.selected').html(`
<a class="item muted sidebar-item-link" href=${htmlEscape(this.getAttribute('href'))}> <a class="item muted sidebar-item-link" href="${htmlEscape(this.getAttribute('data-href'))}">
${icon} ${icon}
${htmlEscape(this.textContent)} ${htmlEscape(this.textContent)}
</a> </a>