Skip to content

Commit

Permalink
Merge pull request #23910 from margelo/fix/follow-up-regression-form-…
Browse files Browse the repository at this point in the history
…checboxes

[NoQA] Check for boolean input values
  • Loading branch information
mountiny authored Oct 5, 2023
2 parents 25f7ac1 + a4079d0 commit 0cbee22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function Form(props) {

// We want to initialize the input value if it's undefined
if (_.isUndefined(inputValues[inputID])) {
inputValues[inputID] = defaultValue || '';
inputValues[inputID] = _.isBoolean(defaultValue) ? defaultValue : defaultValue || '';
}

// We force the form to set the input value from the defaultValue props if there is a saved valid value
Expand Down

0 comments on commit 0cbee22

Please sign in to comment.