diff --git a/src/components/Search/Search.svelte b/src/components/Search/Search.svelte index 2d1a6e8c..60b57f36 100644 --- a/src/components/Search/Search.svelte +++ b/src/components/Search/Search.svelte @@ -2,6 +2,7 @@ let className = undefined; export { className as class }; export let value = ''; + export let autofocus = false; export let type = 'text'; export let small = false; export let placeHolderText = ''; @@ -28,6 +29,7 @@ {style}> + { - value = event.target.value; + on:input={({ target }) => { + value = target.value; }} + {autofocus} {type} {id} {value} />