Skip to content

Commit 83e085e

Browse files
committed
Remove annoying autofocus on mount
1 parent fa47cfe commit 83e085e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/Input.svelte

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import { enhance } from "$app/forms";
3-
import { onMount } from "svelte";
43
import type { KeyboardEventHandler } from "svelte/elements";
54
65
let value = "";
@@ -28,10 +27,6 @@
2827
}
2928
}
3029
};
31-
32-
onMount(() => {
33-
inputRef.focus();
34-
});
3530
</script>
3631

3732
<form

0 commit comments

Comments
 (0)