Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
V-autocomplete @blur no value

I would like to get the value of the selected values in a v-autocomplete when the blur event is triggerd. The value $event.target.value is always set to an empty string. I found a workaround by splitting the parentElement's innerText as such:

var value = $event.parentElement.innerText;
value = value ? value.split('\n') : [];

It is worth noting that this only happens when I set the multiple prop in v-autocomplete:

<template v-slot:item.fieldName="{ item }">
  <v-autocomplete
    multiple
    small-chips
    :value="item.fieldName"
    :items="items"
    color="primary"
    @blur="updateItem(item, $event.target.value, 'fieldName')">
  </v-autocomplete>
</template>

I could not find anything concerning this issue. Am I not supposed to use this input this way ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Did you try using it with a v-model? Two-way binding should be used here so we will not need to manually get the items using $event.target.value.

<v-autocomplete
            v-model="values"
            :items="items"
            dense
            chips
            small-chips
            label="Solo"
            multiple
            solo
          ></v-autocomplete>

So you should be able to get the data directly from the values field. For reference: https://github.com/vuetifyjs/vuetify/blob/master/packages/docs/src/examples/v-autocomplete/prop-dense.vue

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!