Results 1 to 2 of 2

Thread: Can't open datefield monthpicker more than once

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Vote Rating

    Default Can't open datefield monthpicker more than once


    Ext version tested:

    • Ext 4.0.6
    Browser versions tested against:
    • Chrome 16.0.912.77 m
    • IE 9
    • FF 9.0.1
    DOCTYPE tested against:
    • <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
    • If the datefield's monthpicker is opened and the datepicker is hidden, the monthpicker cannot be displayed again.
    Steps to reproduce the problem:
    • 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 result that was expected:
    • The monthpicker should open when the datepicker's monthheader is clicked.
    The result that occurs instead:
    • To the user, clicking on the datepicker's montheader does nothing.
    Test Case:
    // 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


    Screenshot or Video:
    • none
    See this URL for live test case:

    Debugging already done:

    • Ext.picker.Date.showMonthPicker() is called but monthpicker is not shown.
    Possible fix:
    • not provided
    Additional CSS used:
    • none
    Operating System:
    • Windows 7

  2. #2
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia
    Vote Rating


    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.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts