Skip to content

Commit

Permalink
fix(web-component-wrapper): Slots must be passed as camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Apr 25, 2019
1 parent d1fd769 commit 1671c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiori3/src/internal/withWebComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function withWebComponent<T>(WebComponent): FC<T> {
return Children.map(slotProps[slot], (item: ReactElement<any>, index) =>
cloneElement(item, {
key: `${slot}-${index}`,
'data-ui5-slot': toKebabCase(slot)
'data-ui5-slot': slot
})
);
}
Expand Down

0 comments on commit 1671c17

Please sign in to comment.