-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Proposal: merge @atlaskit/tree into react-beautiful-dnd #1277
Comments
This should be resolved soon. We are about to bump Atlaskit to react 16.x /cc @petegleeson
This would be a valid feature to add to
This is interesting and worth more thought. Perhaps we could move to a multi package setup 🤔 |
Yeah that could work! There may be some ways that we could tweak the |
@alexreardon Here is the Atlaskit ticket for multiple tree feature. |
Is there an update on this? I would love to see this be made a proper feature of RBD. |
I'm currently having exactly the same issue implementing a similar use case - a single level list with draggable items on one side and a tree structure with reorderable items on the other side. Is there any update on this topic? Thanks. |
Wanted to chime in that I'm running into this same issue and wanting some way to conditionally set |
Hi Guys! |
I'm really looking forward to multiple tree support feature being implemented, too. |
Any updates on this? |
Hey guys, some one have a solution for this case? |
Well, I have to admit that I have the same use case and unfortunately that animation would look even more stupid in my case 😅 |
Hay, is react-beautiful-dnd suport for handle tree item drag drop ? if posible, can you give me the example. thanks. |
related: #1547 |
Any updates on this? |
That might have been resolved back in 2019, but with newer releases, the same problem has come up again:
installs the latest
installs Bumping versions might be doable with reasonable effort, but there doesn't even seem to be a public Well, it's 2022 Q3, this issue has been open for 3+ years with no recent response. Seems to me like Atlassian has abandoned either (or both) projects - and the app I'm currently working on comes to a grinding halt 😞. |
I was debating whether to open an issue here or in the @atlaskit/tree tracker, but thought GitHub would be more appropriate since it would get more eyes from the general react-beautiful-dnd community.
At my company we've been a long time user of react-beautiful-dnd since the early versions, and have loved it ever since ❤️. We've been long wanting drag-and-drop tree support from RBD for different use cases, and with the recent preview release of @atlaskit/tree we have that... sort of.
Don't get me wrong, the tree package solves some simple use cases very well, but we've run into issues where I believe having tree support be a core feature of RBD would have avoided:
Tree
component renders aDragDropContext
and has very specific logic implemented for theonDrag*
props. This means we can't drag between multiple trees, or for our specific use case, a flat RBD list to a tree.@atlaskit/tree
package depends on[email protected]
, while11.x
is current. We've now got two versions of RBD in our bundle which is unfortunate, unless we hold back on updating RBD, but we can't take advantage of the latest improvements. RBD seems to release major versions on a fairly regular cadence, so i can see this being an ongoing issue.isNestingEnabled
(which internally setsisCombineEnabled
on theDroppable
) for individual tree items based on the value of the item'shasChildren
. For example if thinking about a file/folder tree structure, it doesn't make sense to drop a file onto another file, but it does make sense to drop a file onto a folder to be a child of that folder. In my picture example above, the blue items represent items withhasChildren: true
, and the grey items arehasChildren: false
. I handle this in code currently to ignore drops on items that don't support children, but it makes for an awkward drop animationMy proposal is to merge the tree support as a proper feature of RBD. Looking through the source code of tree, i don't foresee this being a huge challenge, but i may have overlooked some things.
Thanks for considering and for creating react-beautiful-dnd!
The text was updated successfully, but these errors were encountered: