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
To enable conditionally dropping we need to specify type for each Draggable and Droppable. So Draggable with specific type can be dropped on Droppables with same value in type and can not be dropped on Droppables with any other value of type.
If so, we should be able to specify type for both Draggable and Droppable.
Expected behavior
To enable conditionally dropping we need to specify
type
for eachDraggable
andDroppable
. SoDraggable
with specifictype
can be dropped onDroppable
s with same value intype
and can not be dropped onDroppable
s with any other value oftype
.If so, we should be able to specify
type
for bothDraggable
andDroppable
.Actual behavior
We can specify
type
only forDroppable
- https://github.com/hello-pangea/dnd/blob/main/src/view/droppable/droppable-types.ts:But for
Draggable
we can not - https://github.com/hello-pangea/dnd/blob/main/src/view/draggable/draggable-types.ts:Suggested solution?
Add
type
prop toDraggable
.What version of
React
are you using?"react": "^18"
What version of
@hello-pangea/dnd
are you running?"@hello-pangea/dnd": "17.0.0"
What browser are you using?
Chrome 130.0.6723.92
The text was updated successfully, but these errors were encountered: