-
Couldn't load subscription status.
- Fork 1.6k
Description
Describe the bug
When using a DatePicker with time and a min date, the increment minutes button allows to increment up to 00, setting a time before the minDate.
It seems there's an inconsistency between increment and decrement function as seen here
I think the modulo of newMinute should be calculated before validation, as in the decrement function. In the current state, it can try to validate 60 against minMinutes, which is always true.
Pull Request Link
No response
Reason for not contributing a PR
- Lack of time
- Unsure how to implement the fix/feature
- Difficulty understanding the codebase
- Other
Other Reason
No response
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-gke4qbwd?file=src%2FApp.vue
Environment
N/A
Vue version
3.5.13
PrimeVue version
4.3.7
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Within the provided StackBlitz:
- Open the DatePicker
- Try to increment minutes past 59
Expected behavior
The increment button should not allow to go "up" to 00 as it then set a time before the set minDate