Closed toyib-storydoc closed 1 year ago
To highlight only a specific index thats possible to drop a draggable item. i.e set border: 1px dotted red;
draggableId: "item-0", type: "DEFAULT", source: Object, mode: "FLUID", combine: null…} draggableId: "item-0" type: "DEFAULT" source: Object droppableId: "droppable" index: 0 mode: "FLUID" combine: null destination: Object droppableId: "droppable" index: 2
in this case highlight the droppable with index 2
I can only highlight all droppable zone
I figured it out.
Expected behaviour
To highlight only a specific index thats possible to drop a draggable item. i.e set border: 1px dotted red;
draggableId: "item-0", type: "DEFAULT", source: Object, mode: "FLUID", combine: null…} draggableId: "item-0" type: "DEFAULT" source: Object droppableId: "droppable" index: 0 mode: "FLUID" combine: null destination: Object droppableId: "droppable" index: 2
in this case highlight the droppable with index 2
Actual behaviour
I can only highlight all droppable zone