feat: apply preventDefault on event
All checks were successful
Build and Deploy Svelte App / build-and-deploy (push) Successful in 2m11s
All checks were successful
Build and Deploy Svelte App / build-and-deploy (push) Successful in 2m11s
This commit is contained in:
parent
4aee2cba87
commit
872ca8ce97
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user