Skip to content

Commit

Permalink
fix(choice,tests): add value default value, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdauner committed Apr 4, 2020
1 parent 3f71240 commit b5aa590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Choice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let name;
export let options;
export let multiple = false;
export let value;
export let value = '';
const { touchField, values, errors, touched, validateOnChange } = getContext(
FORM
Expand Down
2 changes: 1 addition & 1 deletion tests/Input/__snapshots__/Input.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`Input matches snapshot 1`] = `
</div>
`;

exports[`Input passes props 1`] = `
exports[`Input passes props to input 1`] = `
<div>
<form
class="sveltejs-forms"
Expand Down

0 comments on commit b5aa590

Please sign in to comment.