Merge pull request #14 from pbui/fix-communities-search
fix: add onchange for Communities TextInput
This commit is contained in:
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}
|
||||
|
||||
@@ -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