fix: checkbox propagation

This commit is contained in:
Torsten Dittmann
2024-08-08 17:56:27 +02:00
parent bc4f8ffb00
commit dae75d0850
+2 -2
View File
@@ -12,8 +12,8 @@
const handleClick = (e: Event) => {
// Prevent the link from being followed
e.preventDefault();
e.stopPropagation();
if (!isHTMLInputElement(el)) return;
selectedIds = toggle(selectedIds, id);
// Hack to make sure the checkbox is checked, independent of the
@@ -24,7 +24,7 @@
};
</script>
<TableCellButton on:click={handleClick} on:keypress={handleClick}>
<TableCellButton on:click={handleClick}>
<InputCheckbox
bind:element={el}
id="select-{id}"