Add / Update of layout blocks broken when not using iframe

Created on 4 March 2025, about 1 month ago

Thanks for your work on this module.

Problem/Motivation

https://www.drupal.org/project/layout_builder_iframe_modal/issues/3202523 β†’ introduced a bug where the #ajax submit handler is removed even if the route is not configured to be handled in the iframe.

Steps to reproduce

Remove "add block" and "update block" (or all routes) from the covered routes and notice that the submit handler causes a redirect away from the layout form.

Proposed resolution

This requires a config check before altering the forms #ajax submit handler.

Remaining tasks

Patch forthcoming.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Active

Version

1.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rbrandon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024