View Full Version : Bug in DateFields.js
grappe
19 Apr 2007, 10:25 PM
bug ?
line 234 in DateFields.js
-----------
Ext.apply(this.menu, {
minDate : this.minValue,
probably:
-----------
Ext.apply(this.menu.picker, {
minDate : this.minValue,
brian.moeskau
20 Apr 2007, 12:47 AM
DateField is applying its own config values (minValue, maxValue) to a DateMenu instance, which internally wraps a DatePicker component and applies the same configs to it. Because DatePicker's versions of those same properties are minDate and maxDate, DateField has to map them appropriately so that the apply will work. The code is correct.
brian.moeskau
20 Apr 2007, 6:48 PM
Hmm. Apparently I did not read your post closely enough :). After looking at DateMenu again, it obviously does not inherit from DatePicker. Looking at your change, you are absolutely correct. Sorry for my confusion -- it's been fixed in SVN.
grappe
21 Apr 2007, 6:38 PM
Thank you for having you confirm it
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.