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,8 +64,11 @@ 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 // Delay this slightly so that we don't clear the suggestions before we run click handlers on SuggestionList
GlobalActions.emitClearSuggestions(this.suggestionId); GlobalActions.emitClearSuggestions(this.suggestionId);
}, 100); }, 100);
if (this.props.onBlur) {
this.props.onBlur(); this.props.onBlur();
} }
}
handleChange(e) { handleChange(e) {
const textbox = this.getTextbox(); const textbox = this.getTextbox();