Documentation
Feedback
Guides

Release Notes
Release Notes
Removed
Back button as modal close button
July, 8

{"base64":"  ","img":{"width":105,"height":20,"type":"svg","mime":"image/svg+xml","wUnits":"px","hUnits":"px","length":951,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/custom-data-info-on-order-graphql-0.png"}}

The browser's Back button no longer works as a modal closing button when configuring the Modal Layout app.

Previously, it was possible to close the Modal component using the browser's Back button. This feature was extremely useful for users from mobile devices since the modal opened in them works as a brand new page.

In the meantime, this feature was leading users to a poor experience when using desktop devices since the Back button wasn't working as it should. Instead, it only closed modals (if any on the page).

In order to improve the website navigation, this feature was removed meaning that the Modal Layout now depends on its own button in order to be properly closed.

Was this helpful?
Yes
No
On this page