Skip to content

Commit 2ac34e5

Browse files
committed
bugfixes 2 electric boogaloo
1 parent d61fbd0 commit 2ac34e5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/routes/afspraak/invullen/[eventId]/option-input.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
name={availabilityName}
3232
value="YES"
3333
class="absolute opacity-0"
34+
defaultChecked={response?.availability === 'YES'}
3435
checked={response?.availability === 'YES'}
3536
/>
3637
<span
@@ -47,6 +48,7 @@
4748
name={availabilityName}
4849
value="MAYBE"
4950
class="absolute opacity-0"
51+
defaultChecked={response?.availability === 'MAYBE'}
5052
checked={response?.availability === 'MAYBE'}
5153
/>
5254
<span
@@ -63,6 +65,7 @@
6365
name={availabilityName}
6466
value="NO"
6567
class="absolute opacity-0"
68+
defaultChecked={response?.availability === 'NO'}
6669
checked={response?.availability === 'NO'}
6770
/>
6871
<span
@@ -97,8 +100,10 @@
97100
name={showNote ? noteName : undefined}
98101
class="mt-3 block min-h-12 w-full rounded-lg border px-4 py-2.5 dark:bg-neutral-800/50"
99102
placeholder="Voeg een opmerking toe."
100-
rows={1}>{response?.note ?? ''}</textarea
101-
>
103+
rows={1}
104+
defaultValue={response?.note ?? ''}
105+
value={response?.note ?? ''}
106+
></textarea>
102107
</div>
103108
{/key}
104109
</div>

0 commit comments

Comments
 (0)