0

Once the customer completed the registration, the success message hide too fast?

Kindly guide me to any solution to sort it out?

1 Answer 1

0

You need to increase timeout period on messages.js file

vendor/magento/module-ui/view/frontend/web/js/view/messages.js

You should override that js file or use mixin in your module and set the time out milliseconds.

onHiddenChange: function (isHidden) {
            // Hide message block if needed
            if (isHidden) {
                setTimeout(function () {
                    $(this.selector).hide('blind', {}, this.hideSpeed);
                }.bind(this), this.hideTimeout);
            }
        }

update ohHiddenChnage hideTimeout value like.

onHiddenChange: function (isHidden) {
            // Hide message block if needed
            if (isHidden) {
                setTimeout(function () {
                    $(this.selector).hide('blind', {}, this.hideSpeed);
                }.bind(this), 30000);
            }
        }}
            }

You can get more details from

Increase display time of exception message in magento 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.