ui5-webcomponents
ui5-webcomponents copied to clipboard
fix(ItemNavigation): get slotted elements when slot is included as item
Example:
Wrapper.hbs
<ui5-table>
{{#each items}}
<slot name="{{this._individualSlot}}"></slot>
{{/each}}
</ui5-table>
Child.hbs
<ui5-table-row>
<ui5-table-cell>
...
</ui5-table-cell>
<ui5-table-cell>
...
</ui5-table-cell>
</ui5-table-row>
Example.html
<wrapper>
<child></child>
</wrapper>
This way the child is passed as slot of the Parent which renders a table and forwards the items via slot again. Which means that the table does not receive its rows directly but items which render the rows.
That confuses the current implementation of the Item Navigation and an error is thrown: