mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 01:50:05 -04:00
Update SearchFieldMini.svelte
This commit is contained in:
parent
656bff0d27
commit
aff9c53d41
1 changed files with 7 additions and 2 deletions
|
@ -1,8 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
import { query, search } from '../store.js'
|
import { query, search, setSearchParam } from '../store.js'
|
||||||
|
|
||||||
|
function onSubmit() {
|
||||||
|
setSearchParam('q', $query)
|
||||||
|
search($query)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form on:submit|preventDefault="{search($query)}" autocomplete="off" class="w-full">
|
<form on:submit|preventDefault="{onSubmit}" autocomplete="off" class="w-full">
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<label for="search-input" class="sr-only">Search</label>
|
<label for="search-input" class="sr-only">Search</label>
|
||||||
<div class="relative w-full">
|
<div class="relative w-full">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue