Disable tree expanding

Hello,

I’m developing a system using Dhtmlx scheduler and I’ve added a button to the folder header that opens a modal to assign a project to the user. The issue is that when you click the button the folder collapses, is there any way to disable the collapse when you click the button?

I’ve tried this but it doesn’t work

 event.stopPropagation() 

Thank you.

Hello,

You can implement it by using onYScaleClick event. Please, see example:
docs.dhtmlx.com/scheduler/snippet/0aaced75

Thank you, this solved the problem.