From 1671c17b4606ed2a31520ccbb9c44d6ce8b3051a Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Thu, 25 Apr 2019 17:45:33 +0200 Subject: [PATCH] fix(web-component-wrapper): Slots must be passed as camelCase --- packages/fiori3/src/internal/withWebComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fiori3/src/internal/withWebComponent.tsx b/packages/fiori3/src/internal/withWebComponent.tsx index d87d71cd72c..04df9387372 100644 --- a/packages/fiori3/src/internal/withWebComponent.tsx +++ b/packages/fiori3/src/internal/withWebComponent.tsx @@ -254,7 +254,7 @@ export function withWebComponent(WebComponent): FC { return Children.map(slotProps[slot], (item: ReactElement, index) => cloneElement(item, { key: `${slot}-${index}`, - 'data-ui5-slot': toKebabCase(slot) + 'data-ui5-slot': slot }) ); }