We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ae26fd + 778ac03 commit 1c61906Copy full SHA for 1c61906
app/code/Magento/Ui/view/frontend/web/js/view/messages.js
@@ -20,6 +20,8 @@ define([
20
template: 'Magento_Ui/messages',
21
selector: '[data-role=checkout-messages]',
22
isHidden: false,
23
+ hideTimeout: 5000,
24
+ hideSpeed: 500,
25
listens: {
26
isHidden: 'onHiddenChange'
27
}
@@ -63,13 +65,11 @@ define([
63
65
* @param {Boolean} isHidden
64
66
*/
67
onHiddenChange: function (isHidden) {
- var self = this;
-
68
// Hide message block if needed
69
if (isHidden) {
70
setTimeout(function () {
71
- $(self.selector).hide('blind', {}, 500);
72
- }, 5000);
+ $(this.selector).hide('blind', {}, this.hideSpeed);
+ }.bind(this), this.hideTimeout);
73
74
75
});
0 commit comments