Live Refresh Regression

Created on 7 June 2023, over 1 year ago
Updated 9 June 2023, over 1 year ago

Problem/Motivation

When changing focus from a field other than the title, the iframe does appear to reload, but content updates are not reflected. The only way to see the update is to manually click the preview button again.

Steps to reproduce

* Edit a page with the preview panel visible.
* Edit content in the body field.
* Change focus from the body field.
* Note that the content in the preview panel does not update.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

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

Comments & Activities

  • Issue created by @brianperry
  • πŸ‡¨πŸ‡¦Canada mandclu

    Can verify that I'm seeing a regression in the new release. For me, even the title doesn't update, and appears to be reloading the whole page instead of live updating just the contents of the h1.

    Also, on my site this version doesn't work at all when JS aggregation is on, throwing this error:

    An error occurred during the execution of the Ajax response: TypeError: Cannot read properties of null (reading 'src')

  • @brianperry opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States brianperry

    Opened an MR with what I believe to be a fix.

    That aggregation thing has been driving me mad as well. My current belief is that it is a combination of our local environments and aggregation related changes in 10.1. More info here: https://www.drupal.org/project/same_page_preview/issues/3357541#comment-... ✨ Unhide Drupal Core's preview button Fixed But I encourage you to sanity check me on that. I suppose one way to validate this for sure would be to deploy the latest release somewhere (you and I both know some options, lol) and confirm that aggregation works.

  • Status changed to RTBC over 1 year ago
  • πŸ‡¨πŸ‡¦Canada mandclu

    The MR resolves the regression for me, and with it applied the previous functionality works, even with aggregation on.

  • πŸ‡ΊπŸ‡ΈUnited States brianperry
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024