Created
October 23, 2018 08:39
-
-
Save jon-r/3078a56733440dcdf8d87c98219450b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import AutoComplete, {AutoCompleteProps} from 'antd/lib/auto-complete'; | |
interface IProps { | |
onFocus: any; | |
onBlur: any; | |
otherProps: AutoCompleteProps; | |
} | |
// onBlur is fine, onFocus has a typeError | |
export const ErrorType: React.SFC<IProps> = ({onFocus, onBlur, otherProps}) => ( | |
<AutoComplete onFocus={onFocus} onBlur={onBlur} {...otherProps} /> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment