Layout Builder – paragraphs field disappears after editing paragraph with AJAX enabled

Created on 3 April 2025, 6 months ago

Problem/Motivation

If Layout Builder used to display paragraphs field, editing of the paragraph with Frontend Editing ("Enable Ajax content update" is turn on) results into disappearing of the field from display. The changes saved and visible after page reload, so the problem is with AJAX callback only.

Steps to reproduce

1. Create content type with Paragraphs field
2. Enable Layout Builder for this content type and put Paragraph field into layout section
3. Enable and configure Frontend Editing so you can edit paragraphs, enable "Enable Ajax content update" in UI settings
3. Create content of this content type and add some paragraphs
4. Go to created page and edit one of the paragraphs using Frontend Editing, click Save
5. All paragraphs disappear, no errors in log

Proposed resolution

Update FrontendController's update content method, so it respects Layout Builder settings

πŸ› Bug report
Status

Active

Version

1.8

Component

Code

Created by

πŸ‡΅πŸ‡±Poland nsavitsky

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

Merge Requests

Comments & Activities

  • Issue created by @nsavitsky
  • Pipeline finished with Success
    6 months ago
    Total: 231s
    #464086
  • πŸ‡ͺπŸ‡ΈSpain alexortega_98 Seville

    Tested the MR, but there is something wrong with AJAX:

    Follow the Steps to reproduce above, it will work and paragraphs won't disappear, then try to edit the same paragraph again and AJAX will fail, the form will open in full window and if you try to save, nothing happens.

  • Status changed to Needs work 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States eddynazario

    I'm facing this same issue. Happening with an entity reference paragraph type that I'm using to reference product categories and event categories for our eCommerce website.

    Adding these paragraphs in via the "backend" node edit works completely fine upon saving and viewing, but accessing the Layout Paragraphs Builder on the frontend and subsequently saving the node causes paragraphs added via the backend to disappear instantly, with no hints as to why in the logs or the dev console.

Production build 0.71.5 2024