I am encountering an issue with extracting the selected value from the Datepicker component in the flowbite-react library while using it with NextJS.
The component is being displayed correctly.
I attempted the code below, but it does not return anything when a date is chosen:
import { Datepicker } from "flowbite-react";
export default function ExampleComp(){
return (
<Datepicker
onChange={(e) => console.log(e)} // not functioning
onSelect={(e) => console.log(e)} // not working
onInput={(e) => console.log(e)} // not working
onSelectedDateChanged={(e) => console.log(e)} // Error: Does not exist on type 'IntrinsicAttributes & DatepickerProps'
/>
)
}
There isn't a specific use case mentioned in the official documentation page, but in the storybook, the prop onSelectedDateChanged
exists. I have implemented it, however, I'm encountering the error:
Error: Does not exist on type 'IntrinsicAttributes & DatepickerProps'
.
Your assistance would be greatly appreciated.
Version
- "flowbite": "^1.8.1",
- "flowbite-react": "^0.6.0",
- "tailwindcss": "3.3.3",
- "next": "13.4.19"