fix: add onchange for Communities TextInput
This allows the user to simply enter in their filter and press enter, rather than having to press the "Search" button.
This commit is contained in:
1 parent
59e42add1c
commit
fda05d200e
2 files changed
+9
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user