designsystem icon indicating copy to clipboard operation
designsystem copied to clipboard

SingleDatePickerInput does not accept react component in the datePicker prop

Open skorekm opened this issue 2 years ago • 0 comments

SingleDatePickerInput does not accept react component in the datePicker prop

Detailed description

Describe in detail the issue you're having.

I am trying to use the DateRangePickerInput together with the DateRangePicker from the react-dates library. Unfortunately, I noticed that DateRangePickerInput accepts only function or an object as the datePicker prop. My suggestion is to extend it to also accept React.ReactNode.

Is this a feature request (new component, new icon), a bug, or a general issue?

Feature request

Is this issue related to a specific component?

Yeah, DateRangePickerInput, which partially takes its interface from the SingleDatePickerInput

What version of the WFP UI (Carbon Design System) are you using?

1.21.1

skorekm avatar Aug 05 '22 09:08 skorekm