Skip to content
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

Errors / Warnings related to props when attempting to extend the Datepicker to custom component with extended props #5191

Open
dansolhan opened this issue Oct 25, 2024 · 0 comments

Comments

@dansolhan
Copy link

Describe the bug
After upgrading from 6.9 to 7.5, I am unable to extend the original datepicker component into a new component, using the original datepicker-props interface extended with new props. The following error message is displayed:
image

Understanding that the props are not defined using an interface anymore, but rather a type. I extended the props as a type instead, yielding the following error message:

image

As well as the current errors / warnings when trying to access the props:
image

This error is probably ignoreable, but I'm not entirely sure of the ramifications of doing so.

There's possibly a super smooth way of doing this that I'm not seeing, so I figured I'd ask here.

Expected behavior
It should be possible to extend or derive the original props to extend react-datepicker to own components without errors or warnings.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version [e.g. 7.5]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant