dark icon indicating copy to clipboard operation
dark copied to clipboard

input value not being respected

Open einar-hjortdal opened this issue 7 months ago • 7 comments

In text inputs, the value prop doesn't seem to be respected. The input HTML attribute value matches the variable in the component state, however the rendered value can differ. It is a problem particularly when validating user input: invalid values are caught and corrected at the component state level, but displayed value does not match the component state. This becomes even more of a problem when attempting to utilize event.target.selectionStart when the displayed value contains more characters than the state variable This is a minimal repro although this repro is not particularly refined. I am working on a much larger component at the moment to handle currency input, this behavior blocks me.

einar-hjortdal avatar Jul 21 '24 12:07 einar-hjortdal