Treeview checkbox bug

web
mobile

Topic: Treeview checkbox bug

raichshlv pro asked 2 months 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 pro answered 2 months 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 2 months ago

Hi,

Thank you for the founded bug!

We will fix this in the near future.

Best regards.


raichshlv pro answered 2 months ago

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


Please insert min. 20 characters.
Status

Resolved

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