Calendar incorrect time validation #7381
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
this is continue of task #7232
I'm submitting a ... (check one with "x")
Current behavior
create p-calendar control with minDate and maxDate restrictions and in timeonly mode.
MaxDate (for example) setted as 4 hours and 0 minutes (04:00)
Click 3 times on hour increment arrow -> control shows 03:00
next click on minute increment arrow -> control show 03:15
nex click on hour increment arrow -> control show 04:15
Expected behavior
while clicking on minute hour increment arrow date not changed
Minimal reproduction of the problem with instructions
First: choose max-1 hour (in this example 3:00)
Second: click on minute increment arrow - result will be 3:15 - OK
Third: click on hour increment arrow
Result: time will be 4:15 - invalid value
What is the motivation / use case for changing the behavior?
bug
that happens because hours, minutes and seconds validates independently. seems that there should be one method like validateTime that will be validate all time components together
Please tell us about your environment:
Windows 10, VS Code, npm, ng serve
7.2
7.1.0
all
TS 3
node --version
=The text was updated successfully, but these errors were encountered: