No way to unselect, when max_choices is 1 and field is not required

Created on 15 September 2023, over 1 year ago

If you set the cardinality (max_choices) to 1 and do not make the field required, the widget generates a tree with radio buttons. However, once any radio button is selected, you can choose another radio button but you can't unselect completely. This effectively makes the field required.

In the Drupal 7 versions, there would be an "N/A" option. This should be reimplemented for the 2.x branch. (Any tips on where in the code this would be added?)

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States aasarava

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

Comments & Activities

Production build 0.71.5 2024