mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Remove duplicate click handler from cardbuilder
This functionality is already handled by the <a> tag
This commit is contained in:
@@ -328,18 +328,6 @@
|
||||
|
||||
card.appendChild(cardBox);
|
||||
|
||||
// Add click handler
|
||||
card.addEventListener('click', (e) => {
|
||||
if (!e.target.closest('button')) {
|
||||
console.log('[CardBuilder] item click', { id: item.Id, name: item.Name });
|
||||
try {
|
||||
Dashboard.navigate(`#!/details?id=${item.Id}&serverId=${serverId}`);
|
||||
} catch(e) {
|
||||
console.error('[CardBuilder]', e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return card;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user