Solved: React-day-picker Daypicker Input loses focus when using custom input component
问题 The working sandbox is https://codesandbox.io/s/react-day-picker-base-h9fv6 I have been trying to implement a simple day picker input, where you can both enter the date in the input field and select in the picker. The problem is that when I use a custom input, <DayPickerInput component ={CustomInput}.../> , the input loses focus when the picker is used. This does not happen without a custom input. In the docs it says "If you want to keep the focus when the user picks a day, the component