Skip to content

TreeSelect component disabled node can using the keyboard to select #7034

@nslgit

Description

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

Version

3.2.20

Environment

codesandbox

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.open ant-design-vue doc web page(https://3x.antdv.com/components/tree-select-cn);
2.open the first demo in codesandbox;
3.change the first node which lable is 'parent 1' of the treeData property 'disabled' value to 'true';
4.and then we can't select the first level node 'parent 1' with mouse, but use down key move to 'parent 1' and click 'enter','parent 1' will be selected!

and only the first level disabled node can selected with keyboard.

What is expected?

can't select any node when the node property 'disabled' value was 'true'.

What is actually happening?

the first level disabled node can selected with keyboard.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions