Commit 8f7686c5 by David Committed by GitHub

Merge pull request #13773 from miqh/fix/click-typeahead-suggestion

Fix click-based selection of typeahead suggestion
parents 7d0eccdd 3bb0b0a5
......@@ -198,7 +198,7 @@ class QueryField extends React.PureComponent<TypeaheadFieldProps, TypeaheadField
if (textChanged && value.selection.isCollapsed) {
// Need one paint to allow DOM-based typeahead rules to work
window.requestAnimationFrame(this.handleTypeahead);
} else {
} else if (!this.resetTimer) {
this.resetTypeahead();
}
};
......@@ -402,6 +402,7 @@ class QueryField extends React.PureComponent<TypeaheadFieldProps, TypeaheadField
typeaheadPrefix: '',
typeaheadContext: null,
});
this.resetTimer = null;
};
handleBlur = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment