impr: use native forms instead of submit events

This commit is contained in:
Xylight authored and James Xylight committed 2024-12-23 13:49:20 -08:00
1 parent 4771d343e6
commit adc5dc3ad3
7 files changed
+33 -45

No files matched your search

+2 -6
View File
@@ -26,11 +26,7 @@
let { data } = $props()
// svelte being stupid
let type
run(() => {
type = data.type as any
})
let type = $state(data.type)!
const isComment = (item: CommentView | PostView): item is CommentView =>
'comment' in item
@@ -49,7 +45,7 @@
bind:value={type}
on:change={() => searchParam($page.url, 'type', type, 'page')}
>
{#snippet label()}
{#snippet customLabel()}
<div class="flex items-center gap-0.5">
<Icon src={AdjustmentsHorizontal} size="15" mini />
{$t('filter.filter')}