ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

fix(ItemNavigation): get slotted elements when slot is included as item

Open MapTo0 opened this issue 3 years ago • 0 comments

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:

image

MapTo0 avatar Sep 05 '22 09:09 MapTo0