Default widget throws errors when no available textfield is present

Created on 28 June 2023, 12 months ago
Updated 16 November 2023, 7 months ago

Problem/Motivation

When using this module on paragraphs that don't contain a usable textfield, im seeing errors in the widget configuration as there is no option for 'Source' which is a mandatory field

An illegal choice has been detected. Please contact the site administrator.

Steps to reproduce

1. Enable this module
2. Create a new paragraph with any field that isn't a textfield (in my implementation its a tabs component that will only contain an ERR field to a tab paragraph)
3. Go to manage form display for the new paragraph type
4. Default widget should be 'HTML - safe field output'
5. Configure
6. Notice the source field contains no available fields
7. Save

Proposed resolution

Use "Textfield" as the default widget option?

Note: this also seems to be the main driver for https://www.drupal.org/project/paragraphs_anchor/issues/3370238 πŸ› Drupal\Core\Entity\EntityStorageException: Field is unknown Fixed

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom aaron.ferris

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

Comments & Activities

Production build 0.69.0 2024