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

tree-select 子节点使用selectable:false禁止选中后,希望能点击此节点时能展开此节点 #3157

Closed
huangxiuqi opened this issue Mar 25, 2019 · 2 comments
Assignees

Comments

@huangxiuqi
Copy link

What problem does this feature solve?

现在tree-select组件点击禁止选中的节点时会直接关闭下拉弹出,体验挺不好的,希望能改成如果点击selectable:false的节点,展开此节点,

What does the proposed API look like?

https://stackblitz.com/edit/ng-zorro-antd-start-utfmho?embed=1&file=src/app/app.component.ts
例如上面的例子,点击parent 1节点,会直接关闭下拉框,希望能做成点击parent 1节点时展开parent 1节点

@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


tree-select Subnodes use selectable:false to disable the selection, you can expand this node when you want to click this node

What problem does this feature solve?

Now when the tree-select component clicks on the disabled node, it will directly close the drop-down popup. The experience is quite bad. I hope that if I click the node with selectable:false, expand this node.

What does the proposed API look like?

Https://stackblitz.com/edit/ng-zorro-antd-start-utfmho?embed=1&file=src/app/app.component.ts
For example, in the above example, clicking on the parent 1 node will directly close the drop-down box, hoping to expand the parent 1 node when clicking the parent node 1

@hsuanxyz
Copy link
Member

fixed via ##3843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment