Skip to content

Commit 124934d

Browse files
committed
2321: Fixed key issue
1 parent c7182a5 commit 124934d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/util/forms/checkbox-options.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ function CheckboxOptions({formData, data, onChange}) {
2323
});
2424
}
2525

26-
return (<>
26+
return (<div className={formData.formGroupClasses}>
2727
{
2828
formData.options.map(option =>
29-
<div className={formData.formGroupClasses}>
30-
<input type="checkbox" key={option.value} value={option.value} onChange={onOptionChange} checked={containsValue(option.value)} /> {option.title}
29+
<div className="ms-2 mb-2" key={option.value}>
30+
<input type="checkbox" className="form-check-input me-1" value={option.value} onChange={onOptionChange}
31+
checked={containsValue(option.value)} /> {option.title}
3132
</div>
3233
)
3334
}
34-
</>);
35+
</div>);
3536
}
3637

3738
export default CheckboxOptions;

0 commit comments

Comments
 (0)