Open lucarampi opened 1 month ago
Here is a way to bypass, but is what I was able to acchive:
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?
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 TailwindCSS I 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
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
~ -> Just created a new project and magically worked, no idea why. Edit: About thedrop-indicator
, there was a "relative" in the wrong place