# Bug DREAM-509 - On filterable tree view, sub items are not included when sub-item checkbox is ticked

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-509

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Frontend components and Primer design system / TreeView |
| Target versions | 16.5.0 |
| Observed in versions | 16.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Go to <https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/filterable_tree_view/playground?show_segmented_control=false>

2.  Check the box 'include sub-items'

3.  Select a main item

### What is the buggy behaviour?

  - Sub items are not included

  - Text filtering doesn't work

### What is the expected behaviour?

1.  Sub items are included

2.  Items can be filtered by text

### 

### Note

Bug occurs with or without the segmented control

Bug doesn't occur with this config <https://qa.openproject-edge.com/lookbook/inspect/primer/open_project/filterable_tree_view/playground?show_segmented_control=true&show_checkbox=true&expanded=false> 

### Screenshots and other files

<br>

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/786399/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/786418/content">

### 

### 

### 

### Environment information

**OpenProject version**

Core build

[0a12e2eafce04f9d85c4a7532d1234fca6bbfc41](https://github.com/opf/openproject/commits/0a12e2eafce04f9d85c4a7532d1234fca6bbfc41)

Product version

[4306063c40b4c7c2b944868849081344a365fb0f](https://github.com/opf/saas-openproject/commits/4306063c40b4c7c2b944868849081344a365fb0f)

Core version

OpenProject 16.5.0

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
