PDA

View Full Version : [CLOSED] TimeField min and max value validation does not work correctly.



bzarzuela
28 Feb 2010, 9:18 PM
{
xtype: 'timefield',
fieldLabel: 'From Time',
name: 'fromTime',
minValue: '7:00 AM',
maxValue: '3:00 PM',
increment: 60
}

Given this configuration, the timefield will always mark the field as invalid with the message of time must be on or before 3:00PM.

I'm running Ext 3.1.1.

Doesn't matter what increment you used. But if you remove either the min or max value, the field works.

I'd try to create a patch but I'm neck-deep in work right now. Sorry.

bzarzuela
28 Feb 2010, 9:21 PM
Hold on, it seems only the maxValue config option is failing.

mystix
1 Mar 2010, 1:40 AM
this is already fixed in both the 3.1.x and 3.2.x branches in SVN.