Unable to select node after setItemText


#1

I have a simple TreeView configured and loaded from json.

It works correctly (so far) until I use

myTreeView.setItemText('1', '<b>Text</b>');

Then the node is bolded and contains new text, but I am unable to select it anymore.

Any ideas?


#2

Yep, I can confirm the issue.

As quick solution, add the next styling

<style> .dhxtreeview_item_label b{ pointer-events: none; } </style>

snippet.dhtmlx.com/b5a099d0c


#3

It works. Thank you.