Also when I'm trying to input any invalid data , its not showing me any error. After inputting invalid data when I click anywhere on the page the value from the timefield disappears. Am I doing something wrong?
Try to pass Date objects as minValue and maxValue - it may be that strings above are not parsed correctly (lowercase am/pm?). In any case, you can check if min/maxValues contain expected values after the field is rendered.
But in the timefiled, in the drop down the values are '9:00 AM' to '6:00 PM', that means values are displayed accoring to minValue and maxValue but the error is not displayed. Also when I'm trying to input some invalid data, say any characters and special characters, it does not even display the invalid text. Where am I going wrong?
TimeField currently uses the getErrors from TextField (validator, allowBlank, minLength, maxLength, vtype, regex).
Before the getErrors method was introduced, TimeField used the validation from DateField, but that is now also no longer possible now DateField validation clears the time in minValue/maxValue validation.