Form destructor after select change error



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:


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.