Calendar incorrect minutes validation #7232
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://vbwilqlo.github.stackblitz.io
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 4 times on hour increment arrow -> control shows 04:00
next click on minute decrement arrow -> control show 04:45
Expected behavior
while clicking on minute decrement arrow date not changed
Minimal reproduction of the problem with instructions
steps to reproduce in Current behaviour section
example:
https://vbwilqlo.github.stackblitz.io
problem on line
primeng/src/app/components/calendar/calendar.ts
Line 1315 in 7db14d3
may be it also affects seconds, not only minutes
What is the motivation / use case for changing the behavior?
bug
Please tell us about your environment:
Windows 10, VS Code, npm, ng serve
7.2
7.0.5
all
TS 3
node --version
=The text was updated successfully, but these errors were encountered: