Merge pull request #14 from pbui/fix-communities-search

fix: add onchange for Communities TextInput
This commit is contained in:
Xylight authored and GitHub committed 2023-07-25 14:12:45 -07:00
commit f75f9447af
2 files changed
+9 -1

No files matched your search

@@ -38,6 +38,7 @@
bind:value
on:keydown={(e) => dispatcher('keydown', e)}
on:input={(e) => dispatcher('input', e)}
on:change={(e) => dispatcher('change', e)}
{...$$restProps}
class={className}
{required}
+8 -1
View File
@@ -37,7 +37,14 @@
}}
/>
<div class="flex flex-col sm:flex-row gap-2 sm:ml-auto items-center">
<TextInput bind:value={search} />
<TextInput bind:value={search}
on:change={() => {
$page.url.searchParams.set('q', search)
goto($page.url.toString(), {
invalidateAll: true,
})
}}
/>
<Button
on:click={() => {
$page.url.searchParams.set('q', search)