primevue
primevue copied to clipboard
AutoComplete : permit to show overlay on focus
Describe the bug
According to an existant issue but not resolved (https://github.com/primefaces/primevue/issues/2762), I would like to ask for change on the auto complete component.
What I would like to have is to show the overlay on a simple focus (or click) on the auto complete component.
This will suggest the whole list without filtering.
But as for now, we have the loading icon without anything else... that's a weird behavior.
Reproducer
https://stackblitz.com/edit/nuxt-starter-5yhjzy?file=package.json,app.vue,nuxt.config.ts
PrimeVue version
3.51.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Firefox
Steps to reproduce the behavior
- click on the auto complete
- Nothing happen
Expected behavior
As mentioned, I would like to get a way for showing options on simple focus (especially when completeOnFocus
is enabled).
The predicate to open on focus could be driven by the presence of suggestion list, if empty (i.e. server side search), show nothing, nor the loading indicator, otherwise, show options.
Cf: https://github.com/primefaces/primevue/blob/master/components/lib/autocomplete/AutoComplete.vue#L812-L823
Any reaction at all from Prime Tek? 😢
I can try to work on a PR, just let us know if it'll be accepted?
Too bad the Prime Tek team is not responding to any issues as of late 😢 So many issues and so little reaction from the team...
@tugcekucukoglu ?