#Issue with moving items between Drop Zones

1 messages · Page 1 of 1 (latest)

golden bluff
#

Hi!
I’m trying to fix the following bug in my application:
it's impossible to move items between drop zones. Instead, I have to delete the item, create a new one, and then place it in the desired drop zone. It's also not possible to move an item from a drop zone to the root (where all the items are) or vice versa, from the root into a nested drop zone.

The puck documentation mentions the following:
"Restrictions: You can’t drag between DropZones that don’t share a parent component." (https://puckeditor.com/docs/api-reference/components/drop-zone)

This could explain the issue, but I noticed something in the package demo (https://demo.puckeditor.com/edit). There’s a "Flex" component with its own drop zone, and there, moving items between drop zones works as expected.

I started digging into the demo’s code to find differences between my app and the demo, but so far, I haven’t found anything conclusive.

I also tried creating a simplified version based on what I saw in the demo’s code, but moving items between drop zones still doesn’t work.

Has anyone encountered something similar?
I’d really appreciate any help!

dim geyser
#

I think the demo is the 18.0 canary version

low scarab
#

@dim geyser is correct, the demo runs the canary version (which is confusing, but versioning is a pain to set-up).

If you want to use that, try the 0.18 canary: #announcements message

golden bluff
#

@low scarab @dim geyser
Thank you very much for the explanation, it helped me a lot.
I have indeed updated the version to 0.18.0-canary.b355ddd, and everything is now working as expected.
Could you please also let me know if there is an approximate date, or perhaps somewhere I can check, when the stable version with these new features is planned to be released?

mellow mango
#

@golden bluff happy to hear you could make it work. Is it complicated to upgrade from 0.17? Maybe I want to do the same thing.

low scarab