From a4079d0d958eff8cd0c7c2b4c6aaee2f0ad41efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Mon, 31 Jul 2023 09:15:50 +0200 Subject: [PATCH] Check for boolean input values --- src/components/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form.js b/src/components/Form.js index bfd75a020b32..3659db119f9d 100644 --- a/src/components/Form.js +++ b/src/components/Form.js @@ -264,7 +264,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