only pass keyboard to autocomplete when it has selections
otherwise if tab is pressed, try to tab complete the last word
This commit is contained in:
@@ -41,6 +41,11 @@ export default class AutocompleteWrapperModel {
|
||||
return this._getAutocompleterComponent().hasSelection();
|
||||
}
|
||||
|
||||
hasCompletions() {
|
||||
const ac = this._getAutocompleterComponent();
|
||||
return ac && ac.countCompletions() > 0;
|
||||
}
|
||||
|
||||
onEnter() {
|
||||
this._updateCallback({close: true});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user