-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
There is no toggleCalendarOnIconClick inside ReactDatePickerProps. #4461
Comments
I had same problem, and resolved it by specifying type for /@types/react-datepicker/index.d.ts
export interface ReactDatePickerProps<
CustomModifierNames extends string = never,
WithRange extends boolean | undefined = undefined,
> {
adjustDateOnChange?: boolean | undefined;
allowSameDay?: boolean | undefined;
ariaDescribedBy?: string | undefined;
...
toggleCalendarOnIconClick?: boolean | undefined; // add this line
} |
I know, but we need to fix it with an update in the ReactDatePicker library. |
Hi @tudadar , I worked on the I raise a PR updating the type definition on that repo. I hope we can close this issue here as the issue is not related to this repo. |
This is a requirement for my project as well, and this issue still does occur, is there any ETA for this? |
As I mentioned in my previous comment, this issue is with the As a quick fix, you can use this solution or may be temporarily skip the usage of |
My PR fix got approved. It'll be available whenever they release the version DefinitelyTyped/DefinitelyTyped#68282 |
PR has been merged, we will close this issue. |
I'm trying to use this feature by looking at the example in the official documentation.
I actually tried to apply the feature and it works.
However, I get an error in the vscode saying that the props are missing, and they are.
The text was updated successfully, but these errors were encountered: