-
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 the wrong behavior for a prompt modal when a user clicks on the modal overlay #27399
Fixed the wrong behavior for a prompt modal when a user clicks on the modal overlay #27399
Conversation
Hi @serhiyzhovnir. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento give me test instance |
Hi @nuzil. Thank you for your request. I'm working on Magento instance for you |
Hi @nuzil, here is your new Magento instance. |
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.
Hi @serhiyzhovnir
Please have a look at failed test, looks like it caused by your change:
[NO TESTCASEID]: Admin should be able to cancel and close 'create folder' modal window using ESC key and to add image to new folder (using enter key) for WYSIWYG content of Block
Static test failure is not related to the changes in the pull request. The same functional test is currently failing on other pull requests as well (i.e. #25360 Allure Report) so I assume it's not caused by the changes in this PR as well |
@serhiyzhovnir could you cover the changes by jasmine or MFTF test? |
Hi @sivaschenko, thank you for the review.
|
Hi @sivaschenko For me looks like related to Modal windows issue |
Hi @nuzil, thank you for the review. |
✔️ QA Passed |
… fix-adobe-stock-issue-1002
… fix-adobe-stock-issue-1002
@magento run Functional Tests EE |
Failed integration tests not related to the changes in this PR |
…clicks on the modal overlay #27399
Hi @serhiyzhovnir, thank you for your contribution! |
Description (*)
The prompt modal performs the confirm action when a user clicks on the modal overlay.
This PR fixes this issue and adds the
false
argument forcloseModal()
method when a user clicks on the modal overlay.Related Pull Requests
The issue starts reproducing after the changes from this 6167b0c commit.
Fixed Issues (if relevant)
Manual testing scenarios (*)
The manual testing scenarios and how to reproduce this issue is described in this issue magento/adobe-stock-integration#1002.
Also, it could be checked quickly with the following JS code via a browser console.
This code creates the Prompt popup and clicks on overlay.
In 2.4-develop you will see the alert with "Confirmation" that is triggered by the confirm action.
This issue is fixed in this PR and the prompt popup will be closed after clicking on the modal overlay.
Contribution checklist (*)