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

146
Views
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 answers
Answer question

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 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!