From 9f3b927d0d356b644bc70ba13a5b442a53f6b690 Mon Sep 17 00:00:00 2001 From: Nathalie Kuoch Date: Wed, 29 Nov 2023 13:43:13 +0100 Subject: [PATCH] Fix vbba acceptTerms checkbox --- src/components/CheckboxWithLabel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/CheckboxWithLabel.js b/src/components/CheckboxWithLabel.js index 0f106b856522..92cd7ea38eea 100644 --- a/src/components/CheckboxWithLabel.js +++ b/src/components/CheckboxWithLabel.js @@ -34,7 +34,7 @@ const propTypes = { isChecked: PropTypes.bool, /** Called when the checkbox or label is pressed */ - onInputChange: PropTypes.func.isRequired, + onInputChange: PropTypes.func, /** Container styles */ style: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]), @@ -77,10 +77,11 @@ const defaultProps = { errorText: '', shouldSaveDraft: false, isChecked: false, - value: false, + value: undefined, defaultValue: false, forwardedRef: () => {}, accessibilityLabel: undefined, + onInputChange: () => {}, }; function CheckboxWithLabel(props) {