From 3a9f81d6c110a0afcb5f546ffa9f30e582bee3dc Mon Sep 17 00:00:00 2001 From: zombiej Date: Sun, 7 Apr 2019 10:26:00 +0800 Subject: [PATCH] return null for ResizeOb --- components/_util/resizeObserver.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/resizeObserver.tsx b/components/_util/resizeObserver.tsx index de7f4c1f24..3fd815c7cd 100644 --- a/components/_util/resizeObserver.tsx +++ b/components/_util/resizeObserver.tsx @@ -53,7 +53,7 @@ class ReactResizeObserver extends React.Component { } render() { - const { children } = this.props; + const { children = null } = this.props; return children; } }