Documentation
Feedback
Guides

Release Notes
Release Notes
2020
July
Back button as modal close button

{"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.

Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
On this page