This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
components/molecules/GravityForm/Fields Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ function getMergedCheckboxes(checkboxChoices, inputs) {
32
32
* @param {string } props.description GravityForm field description.
33
33
* @param {Array } props.inputs Array of checkbox field input data.
34
34
* @param {string|number } props.id GravityForm field id.
35
+ * @param {boolean } props.isRequired If input is required.
35
36
* @param {string } props.label GravityForm field label.
36
37
* @param {boolean } props.visibility GravityForm field visibility.
37
38
* @return {Element } The Checkbox component.
@@ -41,6 +42,7 @@ export default function Checkbox({
41
42
checkboxChoices,
42
43
description,
43
44
id,
45
+ isRequired,
44
46
inputs,
45
47
label,
46
48
visibility
@@ -56,6 +58,7 @@ export default function Checkbox({
56
58
description = { description }
57
59
id = { fieldId }
58
60
label = { label }
61
+ isRequired = { isRequired }
59
62
/>
60
63
)
61
64
}
@@ -66,6 +69,7 @@ Checkbox.propTypes = {
66
69
description : PropTypes . string ,
67
70
id : PropTypes . number . isRequired ,
68
71
inputs : PropTypes . arrayOf ( PropTypes . object ) ,
72
+ isRequired : PropTypes . bool ,
69
73
label : PropTypes . string ,
70
74
visibility : PropTypes . string
71
75
}
You can’t perform that action at this time.
0 commit comments