react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

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

Open dansolhan opened this issue 1 year ago • 1 comments

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]

dansolhan avatar Oct 25 '24 00:10 dansolhan

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 09 '25 02:05 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Aug 23 '25 02:08 github-actions[bot]