mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-04 23:16:50 +08:00
return null for ResizeOb
This commit is contained in:
parent
d81ce6ee99
commit
3a9f81d6c1
@ -53,7 +53,7 @@ class ReactResizeObserver extends React.Component<ResizeObserverProps, {}> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { children } = this.props;
|
||||
const { children = null } = this.props;
|
||||
return children;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user