When section library is loaded in a modal there are duplicate buttons

Created on 12 March 2025, 22 days ago

Problem/Motivation

While reviewing the user experience for a project I am working on, my colleague pointed out that there are duplicate buttons when the section library is displayed in a modal.

It was preferred that there is only one button to submit the form when adding a section or layout to the library.

I will note that Layout Builder Modal has a similar open issue: https://www.drupal.org/project/layout_builder_modal/issues/3306090 πŸ› Disable drupalAutoButtons for modal Needs review

Steps to reproduce

  1. Install Layout Builder Modal module β†’
  2. Install Section Library module
  3. In one of your layout builder pages click the "Add section to library" button
  4. When the form loads in a modal there will be duplicate buttons.

Proposed resolution

When building the modal set drupalAutoButtons: false

User interface changes

Removes duplicate buttons from the modal.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States lexfunk

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