Skip to content

Commit

Permalink
fix(toggle): empty hidden input value when not checked
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 5, 2018
1 parent 3af4361 commit 1f19862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/components/toggle/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class Toggle {
}

render() {
renderHiddenInput(this.el, this.name, this.value, this.disabled);
renderHiddenInput(this.el, this.name, (this.checked ? this.value : ''), this.disabled);

return [
<div class="toggle-icon">
Expand Down

0 comments on commit 1f19862

Please sign in to comment.