Open victorsferreira opened 4 years ago
I have a similar problem, I have added custom MaskedInput
in renderInput
, but when I click in any date in calendar, it doesn't populate in the input field. Without the custom MaskedInput
it works just fine. Am I missing a prop here, or its an issue?
<DateTime renderInput={(props, openCalendar) => ( <MaskedInput mask={[/[0-9]/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/]} placeholder="dd/mm/yyyy" onMouseDown={openCalendar} /> )} />
This is still relevant. It happens if I pass onBlur
to custom input and closeOnSelect
to datepicker component.
Did you guys find anything ? Still relevant for me
When I set the
renderInput
prop, theonChange
event is never triggered. Even if I add theonChange
in the input, it does not work. Input and styled input are rendered correctly though.Running version is 2.16.3. Is it a bug or something is missing?