Calendar component in DataTable PrimeReact 10.x: Date selection sets value to null, Clear button works as expected #7389
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
There is an issue with the Calendar component in PrimeReact version 10.x. When selecting a date by clicking on it, the value of the calendar remains null, and the date is not set in the input field. This behavior occurs despite the "Clear" button working as expected, correctly clearing the value and triggering focus lose.
In version 9.5.0, this issue does not occur, and both the "Clear" button and date selection work as expected. However, in version 10.x, selecting a date via click results in a null value.
In 9.5.0 after clicking the "Clear" button in the calendar, the focus remains on the input field, which allows the user to click "Clear" multiple times without closing the calendar or losing focus. But this is less important than what happend in 10.X version.
Reproducer
https://stackblitz.com/edit/vitejs-vite-5wzdws?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
After selecting a date by clicking on it in the calendar, the input field should display the selected date, and the value should be updated accordingly.
The text was updated successfully, but these errors were encountered: