Empty item filled with 1st option with plugin_reference_select on required fields

Created on 4 September 2023, about 1 year ago
Updated 7 October 2023, 12 months ago

Problem/Motivation

With plugin_reference_select, on required multi-value fields, the empty item shows the first plugin from the list and there's no way to unselect it.

Steps to reproduce

  • Create a multi-value field
  • Set the field as required
  • Use the plugin_reference_select.
  • Select one plugin and save
  • Go back to edit form
  • The widget shows now 2 items: one the saved reference, the other is the empty that waits for input.
  • But the empty item shows the first plugin from the list

Proposed resolution

Add an #empty_option.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024