primevue icon indicating copy to clipboard operation
primevue copied to clipboard

AutoComplete: Model value assigns value from the input

Open impowski opened this issue 10 months ago • 0 comments

Describe the bug

I have an autocomplete, which I use to get items from the remote server method, and I have a watcher that gets triggered as soon as I change my filter value.

The problem is that when I make a search the search value gets assigned to the model value itself and as soon as I select an item from the list the model value is assigned with the value from a selected item.

image

Reproducer

https://stackblitz.com/edit/primevue-create-vue-issue-template-aaru21?file=src%2FApp.vue

PrimeVue version

3.51.0

Vue version

3.x

Language

ALL

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

  1. Write filtering value in search input
  2. Select an item
  3. Check the console for model value output
  4. See that the searching value was assigned first and then the selected item

Expected behavior

Search value should not be assigned to model value only a selected one

impowski avatar Apr 24 '24 17:04 impowski