primevue
primevue copied to clipboard
AutoComplete: Model value assigns value from the input
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.
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
- Write filtering value in search input
- Select an item
- Check the console for model value output
- 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