Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
How to pass value with ionChange?

I am trying to pass a few values with ionChange, index and the 0 are passed correctly but value becomes undefined. Is there any way to pass the value?

<ion-select placeholder="Select One" @ionChange="catChange(value, Index,0)" v-model="trip.shelfSetups[Index].categoriesOnShelf[0].categoryId">
    <ion-select-option v-for="category in categories" :value="category.id" v-bind:key="category.id">{{ category.name }}
</ion-select-option>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Found an solution in case anybody runs into the same problem, replace value with $event.

<ion-select placeholder="Select One" @ionChange="catChange($event, Index,0)" v-model="trip.shelfSetups[Index].categoriesOnShelf[0].categoryId">
        <ion-select-option v-for="category in categories" :value="category.id" v-bind:key="category.id">{{ category.name }}
</ion-select-option>

and then get the value.detail.val to get the value.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda