Skip to content

Commit 289cd23

Browse files
committed
fix: invalid props on DOM element
1 parent 3c44d21 commit 289cd23

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/Bar/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ class BarComponent extends React.PureComponent<Props> {
3333
}
3434

3535
private get childProps(): StyledBarProps {
36-
return omit(this.props, []);
36+
return omit(this.props, [
37+
'context',
38+
'innerRef',
39+
'onClick',
40+
'expandInteractiveArea',
41+
'onStatusChanged',
42+
]);
3743
}
3844

3945
private isActivated: boolean = false;

src/Container/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ class Container extends React.PureComponent<Props> {
100100
render() {
101101
return (
102102
<ResizerProvider value={this.contextValue}>
103-
<StyledContainer
104-
{...this.containerProps}
105-
vertical={this.props.vertical}
106-
>
103+
<StyledContainer {...this.containerProps}>
107104
{this.props.children}
108105
</StyledContainer>
109106
</ResizerProvider>

src/Section/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ class SectionComponent extends React.PureComponent<Props> {
5555
return {
5656
...omit(this.props, [
5757
'defaultSize',
58-
'defaultSize',
58+
'size',
5959
'disableResponsive',
6060
'innerRef',
61+
'onSizeChanged',
6162
]),
6263
...this.getStyle(),
6364
};

0 commit comments

Comments
 (0)