Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete: Model value assigns value from the input #5641

Open
impowski opened this issue Apr 24, 2024 · 0 comments
Open

AutoComplete: Model value assigns value from the input #5641

impowski opened this issue Apr 24, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@impowski
Copy link

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 impowski added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant