Calendar: wrong typing for onClick event of navigatorTemplate #2844
Labels
Type: Bug
Issue contains a defect related to a specific component.
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
Month and Year navigation templates have onClick method with 2 arguments expected
https://github.com/primefaces/primereact/blob/master/components/lib/calendar/Calendar.js
But in the types ther is only one argumen which is object
https://github.com/primefaces/primereact/blob/master/components/lib/calendar/Calendar.d.ts
Please can you fix this issue in both 7 and 8 version.
Best regards,
Andrii
Reproducer
No response
PrimeReact version
7.2.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: