fix: empêcher toggle sélection card au clic sur checkbox/label en ajoutant INPUT tagName et closest('label') aux exclusions event handler, en plus des actions/links existants

This commit is contained in:
Bruno Charest 2026-04-22 12:46:07 -04:00
parent 801e406710
commit 10af62dd6c

View File

@ -1331,10 +1331,12 @@ document.addEventListener('DOMContentLoaded', () => {
const card = e.target.closest('.link-outer');
if (card && card.dataset.id) {
// Don't toggle if clicking on actions or links
// Don't toggle if clicking on actions or links or the checkbox itself
if (e.target.closest('.link-actions') ||
e.target.closest('.link-hover-actions') ||
e.target.tagName === 'A') {
e.target.tagName === 'A' ||
e.target.tagName === 'INPUT' ||
e.target.closest('label')) {
return;
}
toggleSelection(card.dataset.id);