Skip to content

<a-tree-select />树选择组件,输入框内,按键盘删除键,删除的是已选节点的最后一个子节点,期望是删除这个节点。 #3508

Open
@fisheryu3583

Description

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

Version

1.7.0

Environment

Windows10, chrome 87.0.4280.88(正式版本)(32 位)

Reproduction link

https://www.antdv.com/components/tree-select-cn/#components-tree-select-demo-checkable

Steps to reproduce

  1. 打开官方文档页面 https://www.antdv.com/components/tree-select-cn/#components-tree-select-demo-checkable
  2. 找到"代码演示" - "可勾选" 演示组件
  3. 选择"Node2"节点
  4. 让光标停留在输入框,"Node2"节点右边
  5. 按下键盘删除键

What is expected?

"Node2"节点在输入框中被删除

What is actually happening?

"Node2"的最后一个子节点被删除,同时"Node2"的另一个子节点显示了出来。


在"treeCheckStrictly"属性为"true"的情况下,不会有此问题。

70a48438484216303e9eb19b5b2cbbc2.mp4

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