Form destructor after select change error


#1

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.


#2

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


#3

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.