Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
fisheryu3583 opened this issue Jan 8, 2021 · 0 comments
Labels

Comments

@fisheryu3583
Copy link

fisheryu3583 commented Jan 8, 2021

  • 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
@fisheryu3583 fisheryu3583 changed the title <a-tree-select />树选择组件,输入框内,按键盘删除键,删除的是已选父节点的最后一个子节点,期望是删除这个父节点。 <a-tree-select />树选择组件,输入框内,按键盘删除键,删除的是已选节点的最后一个子节点,期望是删除这个节点。 Jan 8, 2021
@John60676 John60676 added the bug label Jan 9, 2021
tangjinzhou pushed a commit that referenced this issue May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants