medly / medly-components

🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
https://medly.github.io/medly-components/
MIT License
79 stars 54 forks source link

bug: autoComplete and other default input attributes are not being passed to input in DateRangePicker #723

Closed Abg4real closed 1 year ago

Abg4real commented 1 year ago

Describe the bug

When we try to pass default HTML attributes to DateRangePicker, such as autoComplete, it is not being passed down to the inner input elements.

To Reproduce

  1. Import DateRangePicker and pass default HTML props such as autoComplete in it.
  2. Run the application and inspect the element in the browser.
  3. Error: Props are being assigned to the Outer Wrapper but not to the input elements.

Expected behavior

Input-related props should be passed to the input element.s

Screenshots

DateRangePicker Inspect(1)

Package versions