Skip to content

Commit f070206

Browse files
committed
The image details are not hidden when click on same image in the search result
1 parent 3efbe15 commit f070206

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ define([
100100
*/
101101
show: function (record) {
102102
var img;
103+
104+
if (record._rowIndex === this.lastOpenedImage()
105+
&& this.isVisible(record)) {
106+
this.hide();
107+
return;
108+
}
103109

104110
this.hide();
105111
this.displayedRecord(record);

0 commit comments

Comments
 (0)