My table showcases selectable information, featuring parent rows and child rows.
I am seeking a solution where only the parent rows are selectable if they have no children; otherwise, only the child rows should be clickable. Essentially, it's a select-only-one type of table.
You can see the functioning mechanism in this Plunker:
http://plnkr.co/edit/x7D3aTOR8vrJ3Z6Menli?p=preview
However, I need to apply some data filtering. To achieve this, I've added a filter as shown below:
ng-repeat-start="(pIndex, x) in pro | filter:{ f: '!B'} | filter:{ f: '!C'}"
The plunker with the filter applied can be accessed here: http://plnkr.co/edit/xDo5kLsUzIILK4nVyWsa?p=preview
Unfortunately, this filter breaks the selection functionality. If you compare the options in the first Plunker to those in the second one, you'll notice the issue. What could have caused this break? And what steps can I take to resolve it?