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

excludScrollbar an optional property

Open lordenas opened this issue 1 year ago • 3 comments

Describe the bug excludeScrollbar - should be an optional property in DatePickerProps

To Reproduce https://codesandbox.io/p/sandbox/datepickerprops-92df8r?file=%2Fsrc%2FApp.tsx

I want to make a wrapper for a component. To pass all its properties I use DatePickerProps from the react-datepicker import. But the excludeScrollbar property should be an optional property

Expected behavior excludeScrollbar - should be an optional property in DatePickerProps

lordenas avatar Jun 19 '24 08:06 lordenas

@lordenas Would this page be helpful? (It seems to be a glitch in ts.) https://stackoverflow.com/questions/78641187/why-is-excludscrollbar-property-required-for-react-datepicker

When reproducing it at hand, I forked codesandbox, but the type error is not occurring for some reason. https://codesandbox.io/p/sandbox/datepickerprops-forked-vzwr86

Would bringing ts up to date improve this?

yuki0410-dev avatar Jun 22 '24 13:06 yuki0410-dev

@lordenas Would this page be helpful? (It seems to be a glitch in ts.) https://stackoverflow.com/questions/78641187/why-is-excludscrollbar-property-required-for-react-datepicker

When reproducing it at hand, I forked codesandbox, but the type error is not occurring for some reason. https://codesandbox.io/p/sandbox/datepickerprops-forked-vzwr86

Would bringing ts up to date improve this?

It's strange, but I still see the error in CodeSandox image

lordenas avatar Jun 22 '24 13:06 lordenas

I created a PR for type modification. #4932

yuki0410-dev avatar Jun 22 '24 15:06 yuki0410-dev