Skip to content

Commit 9b8816c

Browse files
committed
Fix compat.html guide group accordion: use correct container ID gdList
Event delegation was bound to non-existent 'gdContainer' instead of the actual container 'gdList', preventing guide groups from expanding.
1 parent d94c276 commit 9b8816c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compat.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,11 +548,11 @@ <h1 class="anim-up grad-text" data-i18n="cpTitle">安装合集</h1>
548548
});
549549

550550
// Guide group accordion - event delegation with keyboard support
551-
document.getElementById('gdContainer').addEventListener('click', e => {
551+
document.getElementById('gdList').addEventListener('click', e => {
552552
const hd = e.target.closest('.gd-group-hd');
553553
if (hd) hd.parentElement.classList.toggle('open');
554554
});
555-
document.getElementById('gdContainer').addEventListener('keydown', e => {
555+
document.getElementById('gdList').addEventListener('keydown', e => {
556556
const hd = e.target.closest('.gd-group-hd');
557557
if (hd && (e.key === 'Enter' || e.key === ' ')) { e.preventDefault(); hd.parentElement.classList.toggle('open'); }
558558
});

0 commit comments

Comments
 (0)