mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
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:
parent
1695365111
commit
07e9773db7
2 changed files with 16 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue