Skip to content

Commit 8fbc096

Browse files
committed
fix: add missing preventDefault to action buttons
Signed-off-by: Robert Goniszewski <[email protected]>
1 parent f6f2445 commit 8fbc096

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib/components/BulkListItem/BulkListItem.svelte

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const onEditItem = () => {
2525
editBookmarkStore.set({
2626
imported: true,
2727
description: '',
28+
importance: 0,
29+
flagged: false,
2830
note: '',
2931
...metadata,
3032
category: {
@@ -106,7 +108,9 @@ const onRemoveItem = () => {
106108
><a class="link hover:link-secondary" href={`/categories/${createSlug(category)}`}>{category}</a
107109
></td>
108110
<th>
109-
<button class="btn btn-ghost btn-xs text-secondary" on:click={onEditItem}>edit</button>
110-
<button class="btn btn-ghost btn-xs text-error" on:click={onRemoveItem}>remove</button>
111+
<button class="btn btn-ghost btn-xs text-secondary" on:click|preventDefault={onEditItem}
112+
>edit</button>
113+
<button class="btn btn-ghost btn-xs text-error" on:click|preventDefault={onRemoveItem}
114+
>remove</button>
111115
</th>
112116
</tr>

0 commit comments

Comments
 (0)