If you have only 1 term in vocabulary you can't create another one from widget

Created on 27 January 2025, 4 days ago

Problem/Motivation

Creating a new term from the widget is impossible when only one term exists. The - Select a value - option does not appear.

Steps to Reproduce

  1. Enable Allow creating new items and Allow creating new levels on the field.
  2. Create a new term from the widget.
  3. You will not be able to add another term at the same level.

Proposed Resolution

In the WidgetView.js file, there is a check that adds the - Select a value - option only if the item collection contains more than one item. This should be changed to allow the option when the item collection has one or more items.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇬🇪Georgia IliaNoz

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

Comments & Activities

Production build 0.71.5 2024