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

169
Vistas
Vue Does not change array data from expansion panel and activate loader

i have problem with vue. when i click get deposit address i activate function:

getAddress(i){
 loader[i] = true;
 ...some other operations
}

this is how it should look: I click the "get address" button, it activates the function and sets the "loader[i]" to true, then vuetify will show the user loading animation, but it doesn't work, only when I open the next panel in v-expansion-panels with a different currency, it somehow will start and show this animation in first panel.

in template in expansion-panel module

<v-btn @click="getAddress(currency, i);" outlined :loading="loading[i]" v- 
if="!currency.address" text dark>Get Deposit Address</v-btn>

in data

loading: [false, false, false, false],

enter image description here

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

VueJS cannot detect changes in your array if you’re setting/updating a value by index, as mentioned in their documentation: https://vuejs.org/v2/guide/reactivity.html#For-Arrays

So, use Vue.set or this.$set instead, ie:

this.$set(this.loader, i, true);
about 4 years ago · Juan Pablo Isaza Denunciar

0

You passed wrong parameter to the function. It should have been

<v-btn @click="getAddress(i);"
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