Skip to content

Commit

Permalink
Only pass checked if no value is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
audiolion committed Dec 19, 2017
1 parent fc08ca2 commit 4f63421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base.js
Expand Up @@ -67,7 +67,7 @@ export default class FormBase extends React.Component {
let { onValues, onValue, values } = this.props;

let value =
target.type === 'checkbox' || target.type === 'radio'
!target.value && (target.type === 'checkbox' || target.type === 'radio')
? target.checked
: target.value;

Expand Down

0 comments on commit 4f63421

Please sign in to comment.