You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, Is there an answer to this question. Does ReactDraggable expect all props to be passed in, or is it just coincidence that it doesn't throw when some properties of bounds missing.
The documentation indicates these are optional arguments, the type definitions should reflect that.
* Alternatively, pass an object with the following properties, all of which are optional:
*
* {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}
Can DraggableBounds
left
,right
,top
andbottom
be optional? The use case is that I have setaxis={"x"}
and I would like to limit the dragging to:but I can't because the interface is currently:
and I would like it to be:
The text was updated successfully, but these errors were encountered: