-Whenever I try to delete a tab which holds something inside, for example, ReactGridLayout with grid items I get an error: "hasOwnPropertyOfNull" with reference to ext.js:1, and when I try to delete a tab with no content inside it, then it works fine with no errors. It's like it doesn't want to delete a tab if it holds references to something else.
-The way I delete something is:
var component = Ext.getCmp(dashboardTabRef.getId());
/* I have console.log-ed the component, and I get the right component that I want. */
component.destroy(); /* I have also tried with component.remove() */
/* Then I perform Redux actions to delete something from the database as well, and to refresh the current list of tab panels. */
as I read, this is the proper way to delete/remove something (https://www.sencha.com/forum/showthr...troy-component).
-This is the error that I am experiencing:
-Is there any way to prevent this?