primefaces/primeng

Bug: Hour increment/decrement buttons in DatePicker not working correctly

Open

#19557 opened on Apr 30, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)CSS (10,366 stars) (4,585 forks)batch import
Type: Buggood first issue

Description

Describe the bug

Create a DatePicker control and set the minDate hour to 9. In the DatePicker dropdown, when clicking the hour increment (up) button, the numbers display correctly and cycle as expected. However, when clicking the hour decrement (down) button, the values only loop between 9, 10, and 11 instead of cycling through all hours.

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/stackblitz-starters-gmn6zbuj?file=src%2Fmain.ts,src%2Findex.html,package.json

Environment

Windows 11, chrome 147

Angular version

21

PrimeNG version

v19 (LTS Only)

Node version

No response

Browser(s)

chrome 147

Steps to reproduce the behavior

  1. Open the StackBlitz website.
  2. Click on the DatePicker dropdown.
  3. Click the hour down button.

You will notice that the behavior is clearly different from the up button.

Expected behavior

When clicking the hour up and down buttons, the behavior should be consistent.

Contributor guide