Extjs: Uncaught TypeError: Cannot read property 'removeAttribute' of null

Viewed 216

When I try to destroy an Extjs Panel I query the panel like this:

Ext.getCmp('panel-117').destroy();

Then I get that error.

When I print (console) the Panel I see it:

ctor {initialConfig: {…}, $iid: 605, id: "panel-117", autoGenId: true, protoEl: null, …}

enter image description here

enter image description here

So I render the 'panel-117' (for example) and it's children components into the 'div' and when the user closes the widow I need to manually destroy those panels.

Any Idea?

0 Answers
Related