AutoComplete: show overlay if there are no suggestions (#3866)

* fix(autocomplete): show overlay if there are no suggestions

* test(autocomplete): show overlay if there are no suggestions

* chore: formatting
This commit is contained in:
Paul Thiel 2023-09-05 03:19:51 +02:00 committed by GitHub
parent 1695365111
commit 07e9773db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View file

@ -215,7 +215,7 @@ export default {
},
suggestions() {
if (this.searching) {
ObjectUtils.isNotEmpty(this.suggestions) ? this.show() : !!this.$slots.empty ? this.show() : this.hide();
this.show();
this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
this.searching = false;
}