-
Notifications
You must be signed in to change notification settings - Fork 419
Closed
Description
Describe the bug
The ListWithDetailMasterItem component passes button as a boolean property to ListItem, which doesn't exist.
Expected behavior
Don't add the button property.
Maybe it was intended as a class name?
Steps to reproduce the issue
- In your json schema create an array of objects, e.g.
{
foo: {
type: 'array',
items: {
type: 'object',
properties: {
bar1: {
type: 'string',
},
bar2: {
type: 'string',
},
},
},
},
}
- In the UI schema define a ListWithDetails input
{
type: 'ListWithDetail',
scope: '#/properties/imaging',
options: {
detail: {
type: 'HorizontalLayout',
elements: [
{
type: 'Control',
scope: '#/properties/bar1',
},
{
type: 'Control',
scope: '#/properties/bar2',
},
],
},
},
}
- Pass both to JsonForms as normal
Screenshots
Which Version of JSON Forms are you using?
3.5.1
Package
React Material Renderers
Additional context
The relevant code is here:
jsonforms/packages/material-renderers/src/additional/ListWithDetailMasterItem.tsx
Line 51 in 0628b99
| <ListItem button selected={selected} onClick={handleSelect(index)}> |

