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