UX issue with live editing

Created on 6 January 2025, 3 months ago

Problem/Motivation

With live editing enabled, when I make a change in the paragraph editing form and close the modal without saving, the change is still visible at the front, whereas it is not visible when disconnected, nor in the paragraph editing form if I reopen the editing modal.

Steps to reproduce

1. have live editing activated for the paragraph in question
2. enable frontend editing and click on the ‘edit’ option for the paragraph
3. modify the value of a field in the form; the modification will be made in aja in the frontend on the left
4. close the edit mode in save modification, the modification made is still visible but has not been saved
5. re-modify the same paragraph and you can see that the modification that is visible in the frontend is no longer visible in the form

Proposed resolution

If a modification has been made in the form, if I click on the ‘close’ icon without saving the content, I should get a message informing me that modifications have been made to the paragraph and that these modifications will be lost if I don't save the paragraph and if the user confirms that they want to close the modal, the content should be reset so that it no longer contains the changes.
Do you have any other ideas for avoiding confusion?

Feature request
Status

Active

Version

1.8

Component

Code

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

Comments & Activities

  • Issue created by @Alexiane Dapsens
  • 🇩🇪Germany a.dmitriiev

    The warning was added in version 2.x in this issue https://www.drupal.org/project/frontend_editing/issues/3473762 📌 Add warning when leaving form and changes would be lost Active . Also in that same issue there is a nice integration with "All entity preview" module found, that the changes can be kept in the form.

    But yes, I agree, that there is a confusion that the preview displays the changed content, but form doesn't. This needs a second thought for version 1.x, but I wanted also to have only bug fixes there and have all new features in 2.x.

Production build 0.71.5 2024