-
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
Fixed issue when escape key is pressed to close prompt #25349
Fixed issue when escape key is pressed to close prompt #25349
Conversation
Hi @konarshankar07. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @sivaschenko, thank you for the review.
|
Hi @konarshankar07 During testing PR I found this issue: "New Folder Name" only hides behind "Media Gallery" popup if press "Escape" button but it is not closed Could you take a look? |
Hello @engcom-Delta , |
@magento run all tests |
Related PR with B2B fixes https://github.com/magento/partners-magento2b2b/pull/49 |
Hi @slavvka, thank you for the review. |
Hi @konarshankar07, thank you for your contribution! |
@konarshankar07 @slavvka @sivaschenko Unfortunately, we need to revert these changes. In the scope of this PR we changed the base UI components ("modal", "modal/promt"). Thus it can lead to a huge impact on the current existed implementations based on this component. We can accept some backward-incompatible changes but in this case, it is unreasonably (I mean not functionality but implementation way that leads to huge BIC). Thanks |
@naydav & others, this PR broke Page Builder's usage of the modal and prompt substantially. I agree this BiC change is maybe too severe as it has potential to break other consumers of these libraries. |
Hello @naydav , |
@konarshankar07 You changed the signature of methods in BIC way. Please look the guide https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/. All that rules apply to all code (both PHP and JS). But unfortunately our SVC doesn't check that for JS files. As you could see that already made your fix incompatible with B2B (that required changes there as well). Also we have some extensions that aren't used to run tests - so after running the builds with them we discovered the issue with PageBuilder. As therefore this could be a huge issue for all other marketplace extensions that could use those methods. That is why we ask you to reimplement the fix in BC way according to the guide and create a new PR. This PR has been reverted. |
@naydav @slavvka @davemacaulay this pull request is fixing a major issue of popups functionality as well as eliminating the interface inconsistency. I'd recommend reviewing the possibility to include this fix in minor release (2.4) |
@sivaschenko |
Related Pull Requests
https://github.com/magento/partners-magento2b2b/pull/49
Description (*)
This PR will fix the issue with prompt. Currently, If escape key is pressed then prompt is not closing but instead of closing it try to submit the prompt
Fixed Issues (if relevant)
Manual testing scenarios (*)
Magento
in the textbox to create folderActual result
Trying to create new folder with
magento
Expected result
Popup should be closed and new folder should not be created
Questions or comments
Contribution checklist (*)