[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.
This commit is contained in:
Ritorna
2017-12-18 12:21:36 +01:00
committed by GitHub
parent 6d9978eb72
commit d94485393e

View File

@@ -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.