-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Update disable drag and drop within images block #38045
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
Update disable drag and drop within images block #38045
Conversation
|
Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
Test Results SummaryCommit SHA: 3f424fe
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
joelclimbsthings
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @louwie17 ! The code looks good at first glance, although I'm encountering an error. If you:
- Replace an image
- Immediately click the arrow to attempt to move that image after it's replaced
I'd guess that the issue actually lies within the block itself, and was probably preexisting to this PR. Let me know if you'd rather address in a follow-up.
fb3c3b2 to
6739f4a
Compare
|
Thanks for the review @joelclimbsthings, it turned out to be an issue with the Should be ready for a re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Submission Review Guidelines:
Changes proposed in this Pull Request:
This adds support to
ImageGallerycomponent to disable dragging, by the newallowDraggingprop (defaults totrue).As a second change this disables dragging within the product images block.
Closes #37955
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
new-product-management-experiencefeature flag ( the non-block editor )product-block-editorfeature flag