MaterialListWithDetailRenderer & ListWithDetailMasterItem issue

Inside MaterialListWithDetailRenderer, the creation of ListWithDetailMasterItem is defined as:

<ListWithDetailMasterItem
                  index={index}
                  path={path}
                  schema={schema}
                  enabled={enabled}
                  handleSelect={handleListItemClick}
                  removeItem={handleRemoveItem}
                  selected={selectedIndex === index}
                  key={index}
                  translations={translations}
                />

jsonforms/packages/material-renderers/src/additional/MaterialListWithDetailRenderer.tsx at master · eclipsesource/jsonforms · GitHub

But childLabel is a required property according to: jsonforms/packages/material-renderers/src/additional/ListWithDetailMasterItem.tsx at master · eclipsesource/jsonforms · GitHub

Is this a bug? And how is this actually working, with the label for the item getting set currently?

Hi @chriswhitehead,

The ListWithDetailMasterItem is wrapped in withJsonFormsMasterListItemProps which eventually calls mapStateToMasterListItemProps which in turn determines the childLabel.

This got me on the right path, thanks!