ant-design-blazor / ant-design-blazor

🌈A set of enterprise-class UI components based on Ant Design and Blazor.

Home Page:https://antblazor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The TreeNode's with 'Checked' parameter will auto checked when clicking its parent's title

pankey888 opened this issue · comments

The code is:

<Tree TItem="string" Checkable CheckStrictly>
	<TreeNode Title="parent 1" Key="0-0" TItem="string">
		<TreeNode Title="leaf" Key="0-0-0-1" Checked TItem="string"></TreeNode>
	</TreeNode>
</Tree>

The result is:

an080-6i7jv

Steps to reproduce (please include code)

Exceptions (if any)

Further technical details

  • AntDesign Nuget Package version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version

I found a solution for myself, also used recently TreeNode checkable and the only good way to work with it is to bind checked keys array. I would like to see bindable Checked feature

I found a solution for myself, also used recently TreeNode checkable and the only good way to work with it is to bind checked keys array. I would like to see bindable Checked feature

Thank you, I have fixed the bug. I'm documenting this bug only to explain in the code's comments why it needs to be fixed.