Set 'drupalAutoButtons' => FALSE for modal to stop all buttons being moved into modal actions

Created on 12 May 2022, over 2 years ago
Updated 29 January 2024, 10 months ago

Problem/Motivation

Instead of showing the "Add another item" button under the multiple fields in the Media edit popup, it shows this button in the popup footer, which is wrong, cause the button(s) should be displayed below the field.
This behaviour is based on the logic of drupalAutoButtons method, which

Steps to reproduce

Install gin as administration theme and create a media entity with at least one multiple field (e.g. term reference field).
While opening the media edit button, used by media widget, the "Add another item" button will be displayed in the dialog footer and not next to the multiple field.

Proposed resolution

This issue is addressed in several issues, which are linked to this issue.
It can be fixed by setting drupalAutoButtons to false via the dialog options.

The patch supplied in this issue, needs core patch https://www.drupal.org/project/drupal/issues/2793343 🐛 Dialog drupalAutoButtons option should be respected on initial load Needs review to work correctly.

🐛 Bug report
Status

Needs review

Version

2.0

Component

User interface

Created by

🇩🇪Germany SteffenR Germany

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

Merge Requests

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.71.5 2024