primevue icon indicating copy to clipboard operation
primevue copied to clipboard

AutoComplete : permit to show overlay on focus

Open edimitchel opened this issue 10 months ago • 4 comments

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

  1. click on the auto complete
  2. 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

edimitchel avatar Apr 16 '24 22:04 edimitchel

Any reaction at all from Prime Tek? 😢

slavco86 avatar Apr 18 '24 13:04 slavco86

I can try to work on a PR, just let us know if it'll be accepted?

edimitchel avatar Apr 19 '24 21:04 edimitchel

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...

slavco86 avatar Apr 23 '24 11:04 slavco86

@tugcekucukoglu ?

edimitchel avatar Apr 23 '24 19:04 edimitchel