Fixed onBlur being called when not given as a prop (#5024)

Этот коммит содержится в:
Harrison Healey
2017-01-09 14:22:21 -05:00
коммит произвёл GitHub
родитель e090104587
Коммит 2f9b56eb3a

Просмотреть файл

@@ -64,7 +64,10 @@ export default class SuggestionBox extends React.Component {
// Delay this slightly so that we don't clear the suggestions before we run click handlers on SuggestionList
GlobalActions.emitClearSuggestions(this.suggestionId);
}, 100);
this.props.onBlur();
if (this.props.onBlur) {
this.props.onBlur();
}
}
handleChange(e) {