I find that I cannot completely destroy the widgets inside the dialog box if I just call dialog.destroyRecursive() , although the dialog seems to be destroyed.
Instead, I need to call dialog.hide() and then call this.destroyRecursive() in the onHide method.
However, this causes another harmless error " exception in animation handler for: onEnd ". But he has all the widgets in the dialog that will be destroyed.
source share