feat: apply preventDefault on event
All checks were successful
Build and Deploy Svelte App / build-and-deploy (push) Successful in 2m11s

This commit is contained in:
itsscb 2025-04-13 00:34:14 +02:00
parent 4aee2cba87
commit 872ca8ce97

View File

@ -97,8 +97,12 @@
<td>{wk.workout_type}</td> <td>{wk.workout_type}</td>
<td>{wk.duration_minutes}</td> <td>{wk.duration_minutes}</td>
<td> <td>
<button type="button" onclick={() => deleteRow(i)} <button
><Trash2 color="red" /></button type="button"
onclick={(e) => {
e.preventDefault();
deleteRow(i);
}}><Trash2 color="red" /></button
> >
</td> </td>
</tr> </tr>