# Breaking Change in TreeView & Custom Component

**URL:** <https://forum.juce.com/t/breaking-change-in-treeview-custom-component/47916>\
**Category:** General JUCE discussion\
**Created:** [September 22, 2021, 4:11pm UTC](https://forum.juce.com/t/breaking-change-in-treeview-custom-component/47916 "2021-09-22T16:11:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![juandagilc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/juandagilc/32/12615_2.png) [@juandagilc](https://forum.juce.com/u/juandagilc)\
**Post date:** [January 9, 2022, 11:36am UTC](https://forum.juce.com/t/breaking-change-in-treeview-custom-component/47916/6 "2022-01-09T11:36:17Z")

</div>

Hi alatar,

Thanks for your response. Your solution works indeed. Also, as you pointed out in a [different post](https://forum.juce.com/t/treeviewitem-createitemcomponent-itemclicked/39387), I can pass a reference to the `TreeViewItem` and call `itemClicked()` and `itemDoubleClicked()` from my custom component.

However, it is not just the functionality to click on items that gets lost after this change, it is also the ability to drag and drop items, select multiple items according to modifier keys, etc. This functionality is part of the `TreeViewItem` already, and in my case, it is a behaviour that I expect in any item of a tree (custom component or not). So having to implement it again in my custom item components does not seem very elegant.

Do you have other suggestions of how I can approach this? What I need is a tree like the one in the DemoRunner, but with labels that I can use to edit the text.

---

_[View the full topic](https://forum.juce.com/t/breaking-change-in-treeview-custom-component/47916)._
