From b3926ce5d6ac93022325643fc80726a7838bb047 Mon Sep 17 00:00:00 2001 From: ZheyangSong Date: Mon, 20 Nov 2017 11:29:49 -0800 Subject: [PATCH] React-Grid-Layout: Add `preventCollision` + Add missing `preventCollision` to `coreProps` --- types/react-grid-layout/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/react-grid-layout/index.d.ts b/types/react-grid-layout/index.d.ts index 7c59c0bf39..fc4f184956 100644 --- a/types/react-grid-layout/index.d.ts +++ b/types/react-grid-layout/index.d.ts @@ -178,6 +178,11 @@ declare namespace ReactGridLayout { */ isRearrangeable?: boolean; + /** + * If true, grid items won't change position when being dragged over. + */ + preventCollision?: boolean; + /** * Uses CSS3 `translate()` instead of position top/left. * This makes about 6x faster paint performance.