ui5-webcomponents
ui5-webcomponents copied to clipboard
[framework]: changing a slot attribute does not update the corresponding element property
Bug Description
When children a processed, the existing slot attributes are taken correctly and child nodes are assigned to a component property
For example
<my-parent>
<my-child slot="header">
then in the parent element
@slot
header;
this.header returns the assigned node correctly.
The issue is when the <my-child> is rendered without a slot attribute and the attribute is added later via child.setAttribute("slot", "header"), this.header is not updated as it should be.
cc: @aborjinik
any progress on this?
Sorry for the long delay, I created a PR today. Please allow a couple of days for code review as most of my team are currently OOO.