-
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
The image details are not hidden when click on same image #25566
Conversation
Hi @engcom-Golf. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @sivaschenko, thank you for the review.
|
@@ -101,6 +101,13 @@ define([ | |||
show: function (record) { | |||
var img; | |||
|
|||
if (record._rowIndex === this.visibleRecord() && | |||
this.isVisible(record)) { |
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.
There is no need to call this.isVisible(record)
as the first condition seems to be enough
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.
ok
@@ -101,6 +101,13 @@ define([ | |||
show: function (record) { | |||
var img; | |||
|
|||
if (record._rowIndex === this.visibleRecord() && | |||
this.isVisible(record)) { | |||
this.hide(); |
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.
Let's just move the codition below the this.hide();
not to duplicate the call
Hi @sivaschenko, thank you for the review. |
Hi @engcom-Golf . Image still cannot be hidden by clicking on it in images grid when image preview was opened. |
Hi @engcom-Delta thank you for attention on this pr, yes this issue related to the latest changes where method |
Hi @sivaschenko, thank you for the review. |
@engcom-Golf There is issue with closing image preview when user clicks on the image on the next page that has same index in grid as original image
❌ Actual result: |
@VasylShvorak can you please report it as a separate issue to Adobe Stock Integration project: Image preview should be closed when the page is changed |
✔️ QA passed |
Hi @engcom-Golf, thank you for your contribution! |
Description (*)
Fixed Issues (if relevant)
Manual testing scenarios (*)
Expected result:
User sees that image details are hidden
Questions or comments
Contribution checklist (*)