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:
1 parent
051cf4b7e7
commit
13b4e05e6b
1 file changed
-12
@@ -328,18 +328,6 @@
|
|||||||
|
|
||||||
card.appendChild(cardBox);
|
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;
|
return card;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user