We are seeing this issue since our conversion to Ext 6. It happens pretty consistently but there are times it does not occur - but once it happens it keeps happening.
In this case, it's some legacy code that has a fairly complex widget that that is being destroyed & recreated when shown. The destroy fails with this error. We have this happening in at least four places in our app.
Any help would be greatly appreciated. I realize not being able to replicate this in a fiddle or something simple is an issue - however I believe the issue only crops up in complex situations. It appears to be timing related as I can sometimes get it to work 1-3 times before it fails by being patient and letting the page sit between clicks.
I found this post under Ext 5 that doesn't appear to have been resolved. https://forum.sencha.com/forum/showt...ementData-null
Here's the crash in JSCode:removeCls: function(names, prefix, suffix) { var me = this, elementData = me.getData(), hasNewCls, dom, map, classList, i, ln, name; if (!names) { return me; } if (!elementData.isSynchronized) { <--- Crashes here with elementData undefined me.synchronize(); } dom = me.d
Code:
- [COLOR=red !important]Uncaught TypeError: Cannot read property 'isSynchronized' of undefined[/COLOR]
removeCls @ ext-all-debug.js?_dc=20151113080941:37044 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:122426 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:122520 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:138094 Ext.apply.destroy @ ext-all-debug.js?_dc=20151113080941:1970 Ext.define.beforeDestroy @ ext-all-debug.js?_dc=20151113080941:125052 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 Ext.define.beforeDestroy @ ext-all-debug.js?_dc=20151113080941:144255 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:64640 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 (anonymous function) @ ext-all-debug.js?_dc=20151113080941:19749 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:125057 Ext.Base.Base.addMembers.callParent @ ext-all-debug.js?_dc=20151113080941:12115 Ext.define.destroy @ ext-all-debug.js?_dc=20151113080941:144258 Ext.define.selectSearch @ RemediationRankSections.js?_dc=20151113080941:433 onclick @ default.aspx:1