Skip to content

Message error on product page is disappearing quickly

So I have this weird behavior on the product page. When I add a product to the cart without filling in all the required information, a message should be displayed!

Everything works fine, but the error message is disappearing quickly, I can barely see it.
I have tried this solution :

  • editing the file vendor/magento/module-ui/view/frontend/web/js/view/messages.js and adjusting the setTimeout function.

But I have found out that this file is responsible for the message errors shown on the checkout page.

I have checked everywhere, and none of the solutions provided are talking about the product page.

It would be great if someone had this issue!
The website is running under Magento 2.4.3 and a custom theme is applied.