Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 1.05 KB

2024-01-29-fix-opening-ajax-modal-within-ajax-modal.md

File metadata and controls

11 lines (11 loc) · 1.05 KB
title issue
Fix opening ajax modal within ajax modal
NEXT-23962

Storefront

  • Added new optional attribute data-prev-url to AjaxModalPlugin to show an optional back-button when opening a new ajax modal within an already opened ajax modal.
  • Added new twig block component_pseudo_modal_back_btn to views/storefront/component/pseudo-modal.html.twig to allow customizing the back-button.
  • Added new optional variable prevUrl to include template views/storefront/element/cms-element-form/form-components/cms-element-form-privacy.html.twig.
  • Changed PseudoModalUtil.open() to clean up existing modals first before opening a new modal. This allows toggling between ajax modals triggered by <a data-ajax-modal="true">.
  • Added data-form-preserver to contact form (views/storefront/element/cms-element-form/form-types/contact-form.html.twig) to keep the filled fields when reading "Data protection information".
  • Added modal-lg by default to all pseudo modals in views/storefront/component/pseudo-modal.html.twig to have more horizontal space.