Skip to content

Commit ea2c763

Browse files
committed
fix(Panel): style property leakage
1 parent 0f19951 commit ea2c763

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/gorgeous-jars-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix style property leakage in Panel component.

src/components/layout/Panel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ function Panel(props: CubePanelProps, ref: ForwardedRef<HTMLDivElement>) {
135135
].forEach((style) => {
136136
if (style in props) {
137137
styles = { ...styles, [style]: props[style] };
138+
139+
delete otherProps[style];
138140
}
139141
});
140142

0 commit comments

Comments
 (0)