Form destructor after select change error

Sample: https://snippet.dhtmlx.com/749xfce9

If I would like to destroy the form after changing the selected value then an JavaScript error will occur.

Please, try to blur from the focused control and after that try to destruct your form:
https://snippet.dhtmlx.com/rugtyj1p

Thank you for reply.

I know how to fix this one case, but this is sample and in fact my application is dynamic and I am not able to predict, when destructor will occure, so I need engine solution rather. Timeout can do next errors when application is big, has a lot of components and a lot is going on.

I’ve sent your report to the dev team, so that issue may be fixed in one of the future updates.

we have fixed your reported problem in the latest dhx.Suite update (7.3.1)
You can test it i nthe following snippet:
https://snippet.dhtmlx.com/pkou4ebd
You just need to add the awaitRedraw in your change event to make sure that component was rendered before destructing it.