blob: 886afe16d37a6bb976f1dd8a8def506c81e340a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<script lang="ts">
import { goto } from '$app/navigation'
export let value = ''
</script>
<form
action="/player"
method="post"
class="user-form"
on:submit={e => {
goto(`/player/${value}`)
e.preventDefault()
}}
>
<input
type="text"
placeholder="Enter username"
name="user-search"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-label="Enter username"
required
bind:value
/>
<slot />
</form>
|