File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
app/code/Magento/Ui/view/base/web/js/grid/columns Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ define([
13
13
defaults : {
14
14
bodyTmpl : 'ui/grid/columns/image-preview' ,
15
15
previewImageSelector : '[data-image-preview]' ,
16
- masonrySelector : '.masonry-image-grid' ,
17
- isListenerActive : false ,
18
16
visibleRecord : null ,
19
17
height : 0 ,
20
18
displayedRecord : { } ,
@@ -48,6 +46,7 @@ define([
48
46
*/
49
47
initialize : function ( ) {
50
48
this . _super ( ) ;
49
+ $ ( document ) . on ( 'keydown' , this . handleKeyDown . bind ( this ) ) ;
51
50
52
51
return this ;
53
52
} ,
@@ -131,11 +130,6 @@ define([
131
130
show : function ( record ) {
132
131
var img ;
133
132
134
- if ( ! this . isListenerActive ) {
135
- $ ( this . masonrySelector ) . on ( 'keydown' , this . handleKeyDown . bind ( this ) ) ;
136
- this . isListenerActive = true ;
137
- }
138
-
139
133
if ( record . _rowIndex === this . visibleRecord ( ) ) {
140
134
this . hide ( ) ;
141
135
You can’t perform that action at this time.
0 commit comments