-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Gallery Drag and Drop Reordering [Using Draggable alternative] #9945
Gallery Drag and Drop Reordering [Using Draggable alternative] #9945
Conversation
5c5b17d
to
6308f89
Compare
@caxco93 @ehg Going to wrap up for the day but wanted to post here what I've found after trying this PR:
It seems like the next step would be to understand what causes |
Actually, forget about what I said yesterday - I was confused by two different
Removing the I'm unsure about the rationale for the |
@caxco93 I've just reviewed my workload for the coming days/weeks and I've realized I need to focus on other tasks first. Would you mind taking over from what I've left and investigating how to fix the |
Yes @nosolosw absolutely I will continue this. Thank you very much for all the info! |
There are now Reorder Dropzones around the Gallery Items. These require a `handleDrop` prop which perform the reordering.
This commit must not be present when merging!
This helps keep the selection after reordering
It now uses the Gallery Image itself instead of the whole Gallery Item because of styling issues
8e9572f
to
c6aa720
Compare
Hey Benjamin, thanks for your work so far. No worries about this, it will be taken care of. |
Going to close this at the moment as there is a master issue for this #743. We can always reopen later. |
Description
[IN PROGRESS]
This PR looks to implement drag and drop reordering for the Gallery Block items.
This alternative tries to accomplish this by using the Draggable component.
Alternative to #7946
Addresses Issue #743
Known Issues:
The mouse down behaviour sticks after dropping an element. You have to click somewhere to have it behave like normal
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: