Add option to choose widget open by default or not

Created on 2 March 2022, over 2 years ago
Updated 17 July 2023, over 1 year ago

I have searched, and I could not find any existing issue for this. Please let me know if this is a duplicate.

Problem/Motivation

When a field is set to use Link (with Attributes), the widget is loaded open by default if there is any enabled attribute selected. In many cases, editors do not want to set any attributes whatsoever. It would be an interesting feature to provide the ability to choose if the widget will be open or collapsed by default.

Steps to reproduce

1. Set a Link type field to use widget "Link (with Attributes)".
2. Enable at least one attribute.
2. Go to add/edit page for the respective content type (or any entity type) and check the details element for "Attributes" is open by default.

Proposed resolution

Add a checkbox field to the field widget configuration where it is possible to choose if the widget details element should be loaded open or closed by default.

Remaining tasks

Modify code.

User interface changes

A new checkbox field on "Manage form display".

API changes

N/A.

Data model changes

N/A.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada maursilveira Windsor, ON

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