From 44262751849ffc95dbf5a40726cc9ab14bcd98fe Mon Sep 17 00:00:00 2001 From: zsviczian Date: Sat, 27 Aug 2022 15:54:39 +0200 Subject: [PATCH] exit updateDOMRect if width or height is zero --- src/components/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/App.tsx b/src/components/App.tsx index 91a6cbe7f0..f949169367 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -6166,6 +6166,10 @@ class App extends React.Component { return; } + if (width === 0 || height === 0) { + return; + } + this.setState( { width,