Cascading selection not respecting 'if none were selected'

Created on 6 February 2023, almost 2 years ago
Updated 18 October 2023, about 1 year ago

Problem/Motivation

The "if none were selected" part of "On parent selection, automatically select children if none were selected.". Likewise for the reverse.

Steps to reproduce

- Create a taxonomy vocabulary with hierarchy
- Add a term field to a content type set to this vocab
- Set the form display widget to 'Term reference tree'
- Set 'Cascading selection' to anything but none
- Create some content of this type
- Select a child term in the field then select the parent. This will select all the other children, whereas from the wording I would expect no other children to be selected as I had already selected one individually

Proposed resolution

Updating the js to account for this.

Remaining tasks

Patch to follow shortly. Needs review.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom kimberleycgm

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

Comments & Activities

Production build 0.71.5 2024