-
8 Feb 2012 11:18 AM #1
Can't open datefield monthpicker more than once
Can't open datefield monthpicker more than once
REQUIRED INFORMATION
Ext version tested:- Ext 4.0.6
- Chrome 16.0.912.77 m
- IE 9
- FF 9.0.1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- If the datefield's monthpicker is opened and the datepicker is hidden, the monthpicker cannot be displayed again.
- Create a datefield.
- Click on datefield trigger to open the datepicker, click on the month header to open monthpicker.
- Close datepicker either by clicking outside of field or by selecting a date to populate datefield.
- Click on datefield trigger to open the datepicker again, click on the month header to open monthpicker.
- PROBLEM: monthpicker does not open.
- The monthpicker should open when the datepicker's monthheader is clicked.
- To the user, clicking on the datepicker's montheader does nothing.
Code:// simplest example Ext.create('Ext.form.field.Date', { renderTo: Ext.getBody() }); // copy of example in Ext.form.field.Date documentation // for some reason this works in the docs live example but not in a simple test page Ext.create('Ext.form.Panel', { renderTo: Ext.getBody(), width: 300, bodyPadding: 10, title: 'Dates', items: [{ xtype: 'datefield', anchor: '100%', fieldLabel: 'From', name: 'from_date', maxValue: new Date() // limited to the current date or prior }, { xtype: 'datefield', anchor: '100%', fieldLabel: 'To', name: 'to_date', value: new Date() // defaults to today }] });
HELPFUL INFORMATION
Screenshot or Video:- none
Debugging already done:- Ext.picker.Date.showMonthPicker() is called but monthpicker is not shown.
- not provided
- none
- Windows 7
-
8 Feb 2012 12:22 PM #2
Can confirm on 4.0.6, however I tested this against the 4.1 B2 and the issue has already been resolved.
Thanks for the report.Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote