Options to automatically select/deselect ancestors/descendants when node is checked/unchecked.

Created on 13 June 2022, over 2 years ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

Add more flexibility to the selection behavior by adding these options:

- Check ancestors when node is checked
- Check descendants when node is checked
- Uncheck ancestors when node is unchecked
- Uncheck descendants when node is unchecked

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡¨Ecuador BetoAveiga Daule, Guayas

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia coaston

    Thank you, works fine for the latest 2.0.0 version, however there is one discrepancy in your code in entity_reference_tree.js:

    +    },
         attach: function(context, settings) {
    +      const self = this;
           $("#entity-reference-tree-wrapper", context)
             .once("jstreeBehavior")
             .each(function() {
    @@ -21,6 +53,11 @@

    the current version 2.x-dev has different rows :

    +    },
         attach: function(context, settings) {
    +      const self = this;
     const entityJSTree = once('entityReferenceTree', '#entity-reference-tree-wrapper', context);
  • πŸ‡ΈπŸ‡°Slovakia coaston

    It is not possible to use update via composer to the latest version. Anyone can fix it please?
    #6 patch works fine, however manual imput is needed.

Production build 0.71.5 2024