Skip to content

Commit

Permalink
SHIBUI-1935 fixed radio button on arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 9, 2021
1 parent 23ae5c5 commit 3bc13f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/app/form/component/widgets/RadioWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const RadioWidget = ({
}) => onFocus(id, value);

const inline = Boolean(options && options.inline);


console.log(enumOptions, id);

return (
<Form.Group className="mb-0">
<Form.Label className="d-block">
Expand All @@ -51,7 +55,7 @@ const RadioWidget = ({
<Form.Check
inline={inline}
label={<Translate value={option.label} />}
id={`${schema.title}-${i}-${option.label}`}
id={`${id}-${option.label}`}
key={i}
name={id}
type="radio"
Expand Down

0 comments on commit 3bc13f1

Please sign in to comment.