[Bug] Cannot read property 'animate' of undefined

I create a dialog, when the page is removed I destroy the dialog. Then when the page is created again, it is created in the dialog, this time when I run the open function, the following error occurs:

Uncaught TypeError: Cannot read property 'animate' of undefined
    at Dialog.open (src.e31bb0bc.js:16234)

To solve this, I must always set the open function to true.

myDialog.open(true);
1 Like