Skip to content

Commit

Permalink
Fixed radio button on attribute creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 14, 2022
1 parent 36a38a3 commit b257f07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ const StringListWithDefaultField = ({
className="flex-grow-1"
value={p.value}
onChange={({ target: { value } }) => setValue(p, value)}></Form.Control>
<Form.Control className="mx-4" name="default" type="radio"
<Form.Check className="mx-4" name="default" type="radio"
checked={ p.default }
onChange={ () => setDefault(p) }
></Form.Control>
></Form.Check>
<Button variant="text" className="text-danger" onClick={() => removeItem(p)}>
<FontAwesomeIcon icon={faTrash} />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ export const CustomAttributeDefinition = {
},
customAttrListDefinitions: {
'ui:field': 'StringListWithDefaultField',
'ui:title': 'label.entity-attribute-list-options',
items: {
default: {
'ui:widget': 'checkbox'
}
}
'ui:title': 'label.entity-attribute-list-options'
}
},

Expand Down

0 comments on commit b257f07

Please sign in to comment.