Skip to content

Commit

Permalink
remove type checkbox for input switch and toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
rodriguc committed Aug 24, 2018
1 parent 3951252 commit 9d69683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/inputswitch/InputSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ export class InputSwitch extends Component {
stopPropagation : () =>{},
preventDefault : () =>{},
target: {
type: 'checkbox',
name: this.props.name,
id : this.props.id,
checked: !this.props.checked,
value: !this.props.checked,
}
});
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/togglebutton/ToggleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ export class ToggleButton extends Component {
stopPropagation : () =>{},
preventDefault : () =>{},
target: {
type: 'checkbox',
name: this.props.name,
id : this.props.id,
checked: !this.props.checked,
value: !this.props.checked,
}
})
}
Expand Down

0 comments on commit 9d69683

Please sign in to comment.