Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultipleContainers.tsx empty container not droppable #1336

Closed
HenrikZabel opened this issue Feb 2, 2024 · 1 comment
Closed

MultipleContainers.tsx empty container not droppable #1336

HenrikZabel opened this issue Feb 2, 2024 · 1 comment

Comments

@HenrikZabel
Copy link

So I tried using MultipleContainers.tsx locally and while I could drag and drop the items in different containers it is not possible to drag them into empty containers.

// Start by finding any intersecting droppable
const pointerIntersections = pointerWithin(args);
const intersections =
  pointerIntersections.length > 0
    ? // If there are droppables intersecting with the pointer, return those
      pointerIntersections
    : rectIntersection(args);
let overId = getFirstCollision(intersections, "id");
console.log("overId", overId); // I will always get null when hovering over an empty container.

"dependencies": {
"@dnd-kit/core": "latest",
"@dnd-kit/sortable": "latest",
"next": "latest",
"react": "18.2.0",
"typescript": "5.3.3"
},

@HenrikZabel
Copy link
Author

Seems like a problem which comes from other packages installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant