You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using props onSelect and viewDate together, a render crash appear with
TypeError: Cannot read properties of null (reading 'currentTarget')
at onDateSelect2 (primereact_calendar.js?v=f83b75ed:6573:11)
at updateViewDate2 (primereact_calendar.js?v=f83b75ed:6121:7)
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jun 12, 2024
Describe the bug
When using props
onSelect
andviewDate
together, a render crash appear withThis example works fine:
And this one:
But using both does not work:
Reproducer
https://stackblitz.com/edit/q4um9w?file=src%2FApp.jsx
PrimeReact version
latest
React version
18.x
Language
ES6
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
It should work properly letting us to handle the
onSelect
callback and using theviewDate
propThe text was updated successfully, but these errors were encountered: