Replies: 2 comments
-
The docs state that in order to keep the input focused:
Your custom input class needs a focus method that once called sets the focus on the element. If you are using React 16.3+ then here's what you need to do:
If you are using an earlier version just do the same with lamba function Also, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Look at my solution for it: https://stackoverflow.com/a/66755055/14374471 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I use react-day-picker with formik
and if I use DayPickerInput without
component
prop then after "TAB" click it works fine, after DayPickerInput component, coursour jumps to next form item.But if I use
component
prop with custom inputCustom input
It works bad, DayPickerInput calendar doesnt close after keyboard "Tab" click, it jumps to navigation between months and next. (see gif below)
How to fix it?
Beta Was this translation helpful? Give feedback.
All reactions