Skip to content

With Transfer Tree component, child nodes auto selected but not transferred  #6495

@igorfraa

Description

@igorfraa
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.18

Environment

Vue 3.2.13, AntDV 3.2.17, Chrome Version 112.0.5615.121

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Get code from Tree Transfer sample (https://www.antdv.com/components/transfer) or codesandbox.io link
  2. edit to remove "check-strictly" from a-tree template
  3. Select parent node '0-1' and see children nodes (0-1-0, 0-1-1) selected
  4. Tap ">" button

What is expected?

All selected nodes go to the right panel: 0-1, 0-1-0, 0-1-1

What is actually happening?

Only the explicitly selected nodes go to the right panel.
It could be parent node 0-1, if one manually click the child - that also go to the right.


Unfortunately I was not able to make codesandbox.io live, but setup is really basic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions