MCPcopy Index your code
hub / github.com/react-dates/react-dates / componentDidUpdate

Method componentDidUpdate

src/components/DateInput.jsx:112–119  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

110 }
111
112 componentDidUpdate(prevProps) {
113 const { focused, isFocused } = this.props;
114 if (prevProps.focused === focused && prevProps.isFocused === isFocused) return;
115
116 if (focused && isFocused) {
117 this.inputRef.focus();
118 }
119 }
120
121 onChange(e) {
122 const { onChange, onKeyDownQuestionMark } = this.props;

Calls

no outgoing calls

Tested by

no test coverage detected