-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento Admin Product Custom Options Not Movable / Draggable in 2.4.4 #36051
Comments
Hi @ksenia-zlotin. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @ksenia-zlotin , Hence request to review the provided steps. Reference video. |
It looks like the video shows the reproducing of this issue. What else am I to provide? |
✔️ Issue confirmed Issue got reproduced in 2.4-develop branch. Description: Drag and Drop feature is not working, when trying to do with customizable options of a product. Pre-requisite: Steps to reproduce: 1.Create a product with 3 custom options 2.Try to drag the second option up to the first position Expected result: Drag and drop feature should be work . Actual result: The dragging action stops and gets stuck, does not complete Screenshots: 2.Try to drag the second option up to the first position. Screen.Recording.2022-09-06.at.5.31.02.PM.movThe dragging action was stopped and stuck and drag and drop is incomplete. Hence confirming the issue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6636 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
Probably to no-one's surprise; I attempted to update to 2.4.5 to see if that resolves this issue, and it didn't. |
The solution provided with the PR has resolved the issue on my project in Adobe Commerce 2.4.5. I hope someone approves and merges that PR quickly. |
I'm increasing the priority of this ticket to P2 because this is a regression issue (in 2.4.3 it worked fine) and it breaks pretty-basic functionality - the ability to manage custom options for the products from the admin. |
Hi @engcom-Delta, |
Hi @ihor-sviziev , This issue is partially fixed. Thanks |
I just applied the changes from ACP2E-980, but unfortunately this does not really solve it. |
@ihor-sviziev , I just tested. |
@norgeindian very strange... According to #36072 (comment) it should work as expected |
@ihor-sviziev , it seems as if according to #36072 (comment) it also does not work for others. |
@norgeindian could you pls report the separate issue for that? Thank you! |
@ihor-sviziev , I tested again, and it seems as if I had a corrupted test product. I now created a new one, and it actually works. |
Preconditions and environment
-Magento 2.4.4
-jQuery 3.6.0
Steps to reproduce
Expected result
Custom option should drag and move to the first position while the first option should move down.
Actual result
The dragging action stops and gets stuck, does not complete.
Additional information
The issue comes from src/vendor/magento/module-ui/view/base/web/js/dynamic-rows/dnd.js:138 where the calculation is made:
jQuery updated the way it handles
outerHeight
function calls. Previously, in Magento 2.4.3-p1 which uses a jQuery version of 1.12.4, jQuery returnedNull
whenouterHeight
was called on a non-existent element. Then theminYpos
value still returned a number value. This is why in the older Magento version, the drag and move action of custom options in Magento worked. This newer jQuery version used in the newer Magento version, however, returnsundefined
. Which is why the calculation referenced above returnsNan
which breaks the drag and move action.Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: