Treeview checkbox bug


Topic: Treeview checkbox bug

raichshlv asked 5 years ago

Expected behavior

Expecting checkbox treeview work like it does on the demo page.

https://ng-demo.mdbootstrap.com/components/treeview

Actual behavior

The top-level checkbox (Root1) does not activate/disable grandchild checkbox (Folderv2.0 under FolderV1.0). Also the child node does not have the checkbox.

Resources (screenshots, code snippets etc.)

Code taken from advanced example at https://mdbootstrap.com/docs/angular/components/treeview/

enter image description here


raichshlv answered 5 years ago

Found the problem: Your code example has a typo ("cheched" instead of "checked")(see highlighted in screenshot)

enter image description here


Konrad Stępień staff commented 5 years ago

Hi,

Thank you for the founded bug!

We will fix this in the near future.

Best regards.


raichshlv answered 5 years ago

I would also like to suggest setting parent nodes to indeterminate if some of the child nodes are checked and unchecked.


I wanna create a treeview with checkboxes for mdb react. How can i do that? Can you help me, please?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.1
  • Device: PC
  • Browser: Chrome, Firefox
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: Yes
Tags