Skip to content

Commit

Permalink
Fix/control input accessibility (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Harper <[email protected]>
  • Loading branch information
wesharper and Weston Harper authored Jan 23, 2024
1 parent 05da972 commit 5ce52b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-vans-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"formsnap": patch
---

Changes input type to "hidden" in hidden form control inputs
2 changes: 1 addition & 1 deletion src/lib/components/form-control.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
</script>

<slot {attrs} />
<input {name} bind:value={$value} style={hiddenInputStyles} />
<input type="hidden" {name} bind:value={$value} style={hiddenInputStyles} />

0 comments on commit 5ce52b7

Please sign in to comment.