datepickerfield with picker freez the app
Ext version tested:Browser versions tested against:DOCTYPE tested against:Description:- When trying to choose a date in datepickerfield, navigator freez and don't respond
Steps to reproduce the problem:- Application is a Sencha MVC application
- Just add this code in anyone forms view:
Code:
{ xtype: "datepickerfield",
label: "date",
margin: "1.2em 0em 0em 0em",
dateFormat: "d/m/Y",
picker: {
yearFrom: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), "Y"),
yearTo: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, 20), "Y")
},
action: "dluoMin"
}
The result that was expected:- datepicker must show taking care of year initialization in picker
The result that occurs instead:Test Case:
To reproduce go on: http://docs.sencha.com/touch/2-1/#!/api/Ext.field.DatePicker
In the codeEditor of example add below code to datepickerfield configuration:
Code:
picker: { yearFrom: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, -10), "Y"),
yearTo: Ext.Date.format(Ext.Date.add(new Date(), Ext.Date.YEAR, 20), "Y")
},
INFORMATIONScreenshot or Video:See this URL for live test case: http://Debugging already done:Possible fix:Additional CSS used:Operating System: