-
Notifications
You must be signed in to change notification settings - Fork 216
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
BUG: Wrong drop target when dragging over/arround (Next.js 14 + Tailwind) #92
Comments
Hi there, In order to debug this issue I will need a standalone example. Could you please provide a codesandbox, stackblitz or similiar? |
Here is a codesandbox example. Note: The MASTER branch is up-to-date and may differ slightly from where I started. Another branch was created for this specific issue, but it might be outdated. I recommend using the MASTER branch. |
Codesandbox is not working. Here is a StackBlitz one. |
Any updates? |
Has this issue been fixed? @alexreardon |
First of all, this is me package.json file:
I started from the tree example on the official docs: https://codesandbox.io/s/h6jq8r?module=/example.tsx
Then I did the following steps:
css
props an replaced with TailwindCSSI did other things after this, but at this point, I was no longer working...
One thing that I noticed is that the
extractInstruction()
can get the write location to place the dragging element... sometimes...In my model, I have a root element and items con only be placed inside it.
Demo: https://github.com/lucarampi/pragmatic-dnd-issues/tree/Issue%2392
The-> Just created a new project and magically worked, no idea why.drop-indicator
is going to the wrong place. If I start dragging a child with index N it applies the wrong padding to thedrop-indicator
Edit: About the
drop-indicator
, there was a "relative" in the wrong placeThe text was updated successfully, but these errors were encountered: