-
30 Apr 2012 6:26 AM #1
Date Picker change event firing twice in ST 2.0.1
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
-
30 Apr 2012 7:24 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,637
- Vote Rating
- 435
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 @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
7 Oct 2012 6:41 AM #3
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
-
22 Oct 2012 6:51 AM #4
-
29 Oct 2012 7:10 AM #5
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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2861
in
2.1.


Reply With Quote