Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker not rendering nexticon and previousicon if custom templates are used #17771

Open
1 of 4 tasks
andrebernardini opened this issue Feb 26, 2025 · 0 comments
Open
1 of 4 tasks
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@andrebernardini
Copy link

Describe the bug

If custom templates are used in the datepicker for previousicon and nexticon, the buttons are rendered without any content.

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/fjruux2y?file=src%2Fapp%2Fdatepicker-basic-demo.html

Environment

N/A (stackblitz provided)

Angular version

19.1.6

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

With the provided Stackblitz example:

  1. Visit the URL and wait until everything is compiled and started
  2. Open the datepicker
  3. Inspect the state of the previousbutton (the one to navigate to the previous month).

Previousbutton uses a custom template for its icon while the nextbutton does not (if you use a custom template for nexticon, the same problem will appear there).

Image

Expected behavior

Custom template should be rendered inside the button

@andrebernardini andrebernardini added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant