react-grid-layout / react-draggable

React draggable component
MIT License
9.01k stars 1.02k forks source link

Set grid with only y #569

Open BearHunter49 opened 3 years ago

BearHunter49 commented 3 years ago

If set grid [10, 10] at draggable, it works fine. But when set grid [0, 10], it works weird.

https://codesandbox.io/s/react-draggable-grid-y-bug-muj09

STRML commented 3 years ago

grid values don't make sense at 0 and should probably error when you set them to 0. Try [1, 10].