From d94485393e6abba9ecdb93f8294daedfe79ec0ce Mon Sep 17 00:00:00 2001 From: Ritorna Date: Mon, 18 Dec 2017 12:21:36 +0100 Subject: [PATCH] [react-grid-layout] Add null type to compactType When using undefined on the compactType the Component uses the compactType "vertical" instead of null. By excplicitely using null the grid works fine. --- types/react-grid-layout/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-grid-layout/index.d.ts b/types/react-grid-layout/index.d.ts index fc4f184956..8dddb624d1 100644 --- a/types/react-grid-layout/index.d.ts +++ b/types/react-grid-layout/index.d.ts @@ -140,7 +140,7 @@ declare namespace ReactGridLayout { /** * Compaction type. */ - compactType?: "vertical" | "horizontal"; + compactType?: "vertical" | "horizontal" | null; /** * This allows setting the initial width on the server side.