Skip to content

Commit

Permalink
chore: fix WebC aggregation mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
petermuessig committed Mar 4, 2024
1 parent de1ef1d commit 4449224
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions showcases/ui5-app/webapp/webc/createWebComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ sap.ui.define(["sap/ui/core/webc/WebComponent", "sap/base/strings/camelize"], fu
mapping: "textContent",
};
} else {
const aggregationName = slot.propertyName || slotName;
if (slotName === "default") {
metadata.defaultAggregation = slot.propertyName;
slotName = undefined;
} else {
slotName = aggregationName;
}
slotName = slot.propertyName || slotName;
metadata.aggregations[slotName] = {
metadata.aggregations[aggregationName] = {
type: "sap.ui.core.Control",
multiple: true,
slot: slotName,
Expand Down

0 comments on commit 4449224

Please sign in to comment.