-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to call .focus() on custom input after selecting a date #636
Comments
Can't use SFCs as custom inputs either because they cannot have refs. |
I ended up implementing a |
Same error here. I think we should be able to overwrite the onFocus like with onBlur or onChange. |
We are looking for this update as well. We had to use a custom input for layout/styling requirements and also see this error being thrown. |
No updates? |
You can fix error if overwrite onBlur event in custom input like |
@stamkov-sc Does not work for me... :( |
@seafarring13 Does your custom input have a |
This is not working for me, I have a functional component, won't work with |
Verified custom text input does throw this error |
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. |
With a
customInput
set, wherecustomInput
has the<input>
element deeply nested,react-datepicker
will throw:after a date is selected.
A simple way to fix this behavior is to skip the
.focus()
step ifcustomInput
was passed.Not sure what a clean solution would be to better support
customInput
.The text was updated successfully, but these errors were encountered: