arqex / react-datetime

A lightweight but complete datetime picker react component.
1.99k stars 872 forks source link

disabled not working when using input props #859

Open krystallopez opened 1 year ago

krystallopez commented 1 year ago

I'm Submitting a ...

[ ] Bug report
[ ] Feature request
[ x] Support request

Steps to Reproduce

When using a DateDropInput component, I am trying to disable when certain conditions have been met. When I attempt to set inputProps={{disabled: true}} to see if this would work. The field is still enabled and I can still select dates.

Expected Results

I am expecting that the specific date drop component I am rendering will be disabled when I set the conditions for disabled.

Actual Results

The date drop input is still enabled

Minimal Reproduction of the Problem

https://codepen.io/krystallopez/pen/bGmWwBw

Other Information (e.g. stacktraces, related issues, suggestions how to fix)