Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
[6.5 Modern]Exception thrown when destroy datefield which choose dates of next month
Ext version tested:
Ext 6.5.1.345 Modern, Ext 6.5.2.463 Modern, Ext 6.5.3.57 Modern
Fiddle:
https://fiddle.sencha.com/#view/editor&fiddle/2cfo
1、Extjs 6.5 modern theme-triton
2、expand datefield's picker(datepanel)
3、choose a date of next month, but at the same dateview (don't switch to the prev/next dateview)
for example, if it's January 2018, choose 2018-02-01
333.png
4、click blank area to collapse the datepanel
5、destroy the datefield,it will throw an error
222.png
Reason:
destroy carousel -> animation's stop function is called -> trigger carousel layout to orderItems -> but items of carousel were destroyed -> throw an exception
Workaround:
Code:
Ext.define(null, { override: 'Ext.layout.Carousel',
privates: {
orderItems: function(items) {
var container = this.getContainer();
if(container && !container.isDestroyed && !container.isDestroying) {
this.callParent(arguments);
}
}
}
});