Reset old element template data

I defined an element template A for a user task, where the modeler can define some input parameters.
Now, the modeler-user wants to deselect this element template A by selecting the first empty element template entry.

My question/problem: The input parameters of element template A are still set in input/output tab. Is there a way to reset the task input/output data after the modeler-user selects the empty element template?

Best Regards

Hi, I was able to solve the problem, but I wonder, if any “element-template changed”-event is fired to the eventbus. I only found one which is fired when you provide element-templates on modeler level.

Atm I changed the logic inside our properties-js-panel fork, but it would be cool to listen to a element template change event to do the changes “outside” the fork.