react-datepicker
react-datepicker copied to clipboard
Pass onClearClick to custom input component?
Is there a way to pass onClearClick function to the customInput component I am using? Because there is a clear button included in the TextField.
I am trying like this, but it's not working.
<DatePicker>
customInput={<TextField
label={props.label}
showClearButton = {props.isClearable}
onClearButtonClick = {props.onClearClick}
placeholderText={props.placeholderText}
/>}
</>
Any update on this. This seems to be a bug. At least we can pass hideClearButton. There is also no way to call onClearClick from component which is rendering Datepicker as onClearClick is a private instance method.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump