Results 1 to 6 of 6

Thread: Date Picker change event firing twice in ST 2.0.1

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2861 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    8
    Vote Rating
    0
      0  

    Default Date Picker change event firing twice in ST 2.0.1

    Hi,

    I Just tried to upgrade from ST 2.0.0 to ST 2.0.1, and noticed a couple of changes that break my app, one of them being the Date Picker change event now firing twice, and also firing on setValue.

    ST 2.0.0
    in onBreadcrumbsDateFieldChange() date changed to: Mon Apr 30 2012 00:00:00 GMT-0400 (EDT)

    ST 2.0.1
    in onBreadcrumbsDateFieldChange() date changed to: Apr 30, 2012
    in onBreadcrumbsDateFieldChange() date changed to: Mon Apr 30 2012 00:00:00 GMT-0400 (EDT)

    Thanks,
    Tom Zeng
    Lead Software Architect
    Wireless Matrix

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,323
    Vote Rating
    1294
      0  

    Default

    Thanks for the report

    Code:
    new Ext.form.Panel({
        fullscreen : true,
        items      : [
            {
                xtype     : 'datepickerfield',
                label     : 'Test',
                listeners : {
                    change : function() {
                        console.log('change fired'); //fires twice, should only be once
                    }
                }
            }
        ]
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    548
    Vote Rating
    44
      0  

    Default

    This is still firing twice in the latest ST build. The problem is the date value is changing from the first time it fires to the second. tried event binding at the controller and on the view, both exhibit the same bug.

    the first time 'change' fires, date is short : 2012-10-06, the second time it fires, the date param is a date long: Fri Sep 07 2012 00:00:00 GMT-0400 (EDT).

    can we have a workaround or an ETA on the fix? Senchas reply was back in Apri... been many months now.

    Thanks,
    John

  4. #4
    Sencha User
    Join Date
    Oct 2012
    Posts
    18
    Vote Rating
    0
      0  

    Default

    I have same problem((
    Event firing twice

  5. #5
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    This is fixed in Sencha Touch 2.1 which is soon to be released. You can get the latest RC here: http://www.sencha.com/forum/announcement.php?f=91&a=36

    Thanks!
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  6. #6
    Sencha User
    Join Date
    Nov 2013
    Posts
    73
    Vote Rating
    2
      0  

    Default

    Is this bug fixed cause i'm experiencing this at the moment; when i pick a new value in different slots and hit Done it will fire the change event twice with one short result and one long date result. If i don't pick any new value and simply click Done it will only fire once and print the long date result.

Posting Permissions

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