Disable autosaving for layout builder pages

Created on 22 March 2022, over 2 years ago
Updated 23 June 2024, 6 days ago

Problem/Motivation

When on a layout page and you scroll down, wait a bit, the page jumps around (scroll position changes). From looking at the network console I figured this happens due to ajax requests of "autosave_form" module. Issue doesn't happen when module is deactivated. utosave_form is not needed on node/?/layout pages since layout-builder already takes care of saving changes after block edit.

Steps to reproduce

Enable autosave_form module and leave it enabled for all node types. Enable layout builder for a content type and then edit the layout of a certain node. After adding multiple sections/blocks enough to have scrolling on the page, scroll all the way down and wait a few seconds for the autosave_form ajax to be triggered. Page should scroll up by itself. Theme used: gin.

Proposed resolution

Disable autosave_form functionality on layout builder pages because it is not needed anyway. Layout builder module has the autosave functionality incorporated.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania ciprian.stavovei

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024