Disable refocus on edit form

Created on 21 December 2023, 12 months ago
Updated 30 January 2024, 11 months ago

Problem/Motivation

The ajax submit of an editable field tries to refocus on the element that triggered the ajax but that gets replaced by the markup returned by the ajax call. The result is the page scrolling all the way up.

Steps to reproduce

Display an editable form at the bottom of a page with scroll and edit it with ajax enabled.

Disclaimer: I also use the #11 patch from ✨ Autosave option for editable node fields? Fixed

Proposed resolution

Disable refocus for the ajax events. I don't think the refocus is a desired behaviour in the context of editablefields module but in case there is a concern we can make it configurable.

Remaining tasks

Code

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

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