Field formatter settings form and AJAX issue (regression on 10.1.x after #857312)

Created on 20 November 2023, about 1 year ago
Updated 23 December 2023, 12 months ago

Problem/Motivation

As explained in #857312-89: Add a "changes not applied until saved" warning when changing widget/formatter settings โ†’ introduced in core 10.1.0, it looks like the changes there introduced a regression with field formatter settings and AJAX.

Steps to reproduce

With DS enabled and field templates enabled:
- Go to manage display, enable a DS layout for the view mode
- for any field, edit settings and change "Field Template" from "Master" to "Minimal"
- click for example the "Show label colon" or any other input field
-> the entire form refreshes and we loose all values we entered (see attached gif).

Proposed resolution

TBD

The changes in Drupal.fieldUIDisplayOverview.field introduced in the core issue seems to cause that.
Either ds_field_ui_display_overview_multistep_js() needs to be updated to add the ajax-new-content class (similar to how EntityDisplayFormBase::multistepAjax does) or maybe this is considered as a core bug/regression.

Remaining tasks

TODO

User interface changes

TODO

API changes

TODO

Data model changes

TODO

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium herved

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

Comments & Activities

Production build 0.71.5 2024