remove ai slopped autoselect on signup
deploy / build-and-deploy (push) Successful in 33s

This commit is contained in:
bytedream committed 2026-11-01 20:38:31 +01:00
1 parent 7957d14040
commit 3bc7da8005
1 file changed
+1 -11
+1 -11
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import { tick } from 'svelte';
import BedrockSignup from './BedrockSignup.svelte';
import EditionSelection from './EditionSelection.svelte';
import JavaSignup from './JavaSignup.svelte';
@@ -18,21 +17,12 @@
type Step = 'java' | 'bedrock' | null;
let step = $state<Step>(null);
async function selectEdition(edition: 'java' | 'bedrock') {
step = edition;
if (edition === 'java') {
await tick();
document.getElementById('firstname')?.focus();
}
}
</script>
<div>
<h1 class="text-center text-3xl lg:text-5xl">Anmeldung</h1>
<EditionSelection onSelect={selectEdition} selected={step} />
<EditionSelection onSelect={(edition) => (step = edition)} selected={step} />
<div class:hidden={step !== 'java'}>
<JavaSignup