diff --git a/src/DayPickerInput.js b/src/DayPickerInput.js index 2bf963851e..ae3288eedc 100644 --- a/src/DayPickerInput.js +++ b/src/DayPickerInput.js @@ -365,7 +365,7 @@ export default class DayPickerInput extends React.Component { handleOverlayFocus(e) { e.preventDefault(); this.overlayHasFocus = true; - if (!this.props.keepFocus) { + if (!this.props.keepFocus || typeof this.input.focus !== 'function') { return; } this.input.focus();