Fixed onBlur being called when not given as a prop (#5024)
Этот коммит содержится в:
коммит произвёл
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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user