PDA

View Full Version : DateField month/year picker not working properly



gmuser
1 Dec 2014, 8:32 AM
DateField month/year picker not working properly

When I try to chose a month/year the monthpicker is closing on mouse click. Doesnt work properly

fieldLabel: 'Resp. due date >',
xtype: 'datefield',
scope: this,
name: 'respondByDate',
minValue: minDate,
maxValue: maxDate,
value : defaultDate,
format: 'd-M-Y',

Note: I looked at this thread, tried to use this override fix but doesnt work for EXT JS 4.2 version.
http://www.sencha.com/forum/showthread.php?290305-5.0.1-Ext.picker.Month-closing-on-body-click&p=1061001

carol.ext
1 Dec 2014, 9:58 AM
Month/year picker works okay for me on the theme viewer (http://docs.sencha.com/extjs/4.2.3/extjs-build/examples/themes/index.html). I tried it on my local server with 4.2.1. On Chrome 26 and IE 9.

Does the theme viewer picker work for you (bottom left widget)? What versions of Ext JS and browser are you using?

I cannot bring up that forum post, don't have permission.

gmuser
1 Dec 2014, 11:00 AM
Hi I am able to reproduce the issue in above theme viewer. Worked fine in bottom left widget.
But not on datefield. Click on calender icon in datefield, click on arrow dropdown besides Month, try selecting month.
Box just closes without selecting anything.

EXT JS 4.2
Tested on IE 9 & Firefox

carol.ext
1 Dec 2014, 1:13 PM
I see the behavior you describe with the 4.2.3 theme example DateField. On my local server the DateField month/year picker works okay on 4.2.1.

scottmartin
1 Dec 2014, 1:49 PM
We have a bug report for this: EXTJS-15294. I have added your post to the ticket.