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

131
Views
Búsqueda de Vuetify al pulsar una tecla

Tengo un campo de texto básico que al presionar una tecla enviaría la solicitud de búsqueda al backend.

 <template> <v-form ref="form" > <v-text-field v-model="deviceId" label="Search" required clearable name="searchInput" @keyup.native="updateStore" /> </v-form> </template>

y este es el guion

 device : string | undefined = undefined get deviceId () : string | undefined { if (this.device === undefined) { this.device = store.selectedDevice } return this.device } set deviceId (value : string) { store.selectDevice(value) this.device = value } updateStore (value: string): void { console.log(value) store.selectDevice(value) }

El problema es que no envía una solicitud para todos los caracteres escritos en la búsqueda. Entonces, si escribo 'ping', la consulta solo envía query=p . Sin embargo, si copio y pego la cadena en la barra de búsqueda, envía query=ping .

¿No está seguro de qué evento vueitfy usar o si la estructura de la plantilla es incorrecta?

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

0

Intente usar el evento de input en lugar de keyup :

 <template> <v-form ref="form" > <v-text-field v-model="deviceId" label="Search" required clearable name="searchInput" @input="updateStore" /> </v-form> </template>
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!