File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Checkout/view/frontend/web/js
Ui/view/base/web/js/modal Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,10 @@ define([
77
77
confirm : function ( ) {
78
78
self . _removeItem ( $ ( event . currentTarget ) ) ;
79
79
} ,
80
- always : function ( event ) {
81
- event . stopImmediatePropagation ( ) ;
80
+
81
+ /** @inheritdoc */
82
+ always : function ( e ) {
83
+ e . stopImmediatePropagation ( ) ;
82
84
}
83
85
}
84
86
} ) ;
Original file line number Diff line number Diff line change @@ -100,11 +100,12 @@ define([
100
100
/**
101
101
* Escape key press handler,
102
102
* close modal window
103
+ * @param {Object } event - event
103
104
*/
104
- escapeKey : function ( ) {
105
+ escapeKey : function ( event ) {
105
106
if ( this . options . isOpen && this . modal . find ( document . activeElement ) . length ||
106
107
this . options . isOpen && this . modal [ 0 ] === document . activeElement ) {
107
- this . closeModal ( ) ;
108
+ this . closeModal ( event ) ;
108
109
}
109
110
}
110
111
}
You can’t perform that action at this time.
0 commit comments