mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 18:10:06 -04:00
Update SearchField.svelte
This commit is contained in:
parent
f22f3cb680
commit
656bff0d27
1 changed files with 7 additions and 2 deletions
|
@ -1,11 +1,16 @@
|
|||
<script>
|
||||
import { query, search } from '../store.js'
|
||||
import { query, search, setSearchParam } from '../store.js'
|
||||
|
||||
export let found = 0
|
||||
export let isLoading = true
|
||||
|
||||
function onSubmit() {
|
||||
setSearchParam('q', $query)
|
||||
search($query)
|
||||
}
|
||||
</script>
|
||||
|
||||
<form class="mb-5" on:submit|preventDefault="{search($query)}">
|
||||
<form class="mb-5" on:submit|preventDefault="{onSubmit}">
|
||||
<div>
|
||||
<label for="search-input" class="sr-only">Search</label>
|
||||
<div class="relative mt-1">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue