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
|
bind:value
|
||||||
on:keydown={(e) => dispatcher('keydown', e)}
|
on:keydown={(e) => dispatcher('keydown', e)}
|
||||||
on:input={(e) => dispatcher('input', e)}
|
on:input={(e) => dispatcher('input', e)}
|
||||||
|
on:change={(e) => dispatcher('change', e)}
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
class={className}
|
class={className}
|
||||||
{required}
|
{required}
|
||||||
|
|||||||
@@ -37,7 +37,14 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-col sm:flex-row gap-2 sm:ml-auto items-center">
|
<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
|
<Button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
$page.url.searchParams.set('q', search)
|
$page.url.searchParams.set('q', search)
|
||||||
|
|||||||
Reference in new issue
Block a user