Reputation: 5399
I've got some odd error which I don't know how to overcome. Here is what I've got for now - one view with button on it, clicking on button will open a new empty window. So, when I'm doing the scenario below, I'm getting Type error el is null error. So here is the scenario:
I saw some topics devoted to such a error, but the solution is not stated anywhere. Here is the topic where forum user Animal talked about this error and, again, solution is not provided overthere.
Upvotes: 1
Views: 3436
Reputation: 30082
Since you didn't post any code...
The default closeAction
of a window is to destroy it, which means the DOM gets cleaned up. You're probably doing something like:
var w = new Ext.window.Window();
w.show();
// Later on, user clicks close, which does:
w.close();
// Later
// Can't show, window is destroyed
w.show();
You either need to:
a) Set the closeAction to hide
b) Create a new instance of the window
Upvotes: 3