Skip to content

Commit b5aa590

Browse files
committed
fix(choice,tests): add value default value, fix test
1 parent 3f71240 commit b5aa590

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Choice.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export let name;
99
export let options;
1010
export let multiple = false;
11-
export let value;
11+
export let value = '';
1212
1313
const { touchField, values, errors, touched, validateOnChange } = getContext(
1414
FORM

tests/Input/__snapshots__/Input.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports[`Input matches snapshot 1`] = `
2727
</div>
2828
`;
2929

30-
exports[`Input passes props 1`] = `
30+
exports[`Input passes props to input 1`] = `
3131
<div>
3232
<form
3333
class="sveltejs-forms"

0 commit comments

Comments
 (0)