Changes in edit modal form are not reflected after submit

Created on 21 November 2024, 6 months ago

Problem/Motivation

After submitting the paragraph edit form in the modal, changes are not visible until you manually refresh the page.

Steps to reproduce

On a brand new Drupal 10 site, install paragraphs_modal_edit and enable it (this should install contextual, paragraphs, and paragraphs_edit modules).

  1. Create a new Paragraph type with a field (I've used a text formatted long to test)
  2. In the Basic Page CT, go to add a new field "Entity reference revisions" (Reference type: Paragraph) and select your new Paragraph type created in step 1
  3. Go create a new Basic Page, complete all the required fields and add some content in the paragraph reference field
  4. Save changes and view the node
  5. Hover over the paragraph field, and using the contextual links (little pencil icon) click on "Edit"
  6. On the modal, make any change and click on "save"
  7. See how the paragraph content does not reflect the changes
  8. Manually reload the page and make sure now you can see the changes applied in step 6.

Proposed resolution

Maybe there is a better solution, but I think we could refresh the page after submitting the form with the ajax command.

Remaining tasks

Add tests

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡·Argentina anairamzap Buenos Aires

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024