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

227
Views
La plantilla de Vue con la condición v-if no reacciona al cambio de valor

Tengo una plantilla con condición v-if basada en el valor de los datos. Pero si cambio el valor, no vuelve a dibujar la plantilla. Veo que el valor ich cambió en el depurador de Vue pero v-if lo bloquea como si estuviera vacío como en la carga del componente.

Aquí está el código:

 <div v-if="newSelectedDevices" class="mt-2 mb-2"> <template> <b-field class="has-horizontal-line pb-2"> <b-taglist> <b-tag v-for="(included, index) in newSelectedDevices" :key="'included_' + index" // This is the problem. It set is-hidden although isNew value is true :class="{'is-hidden': included.isNew, 'taglist': true, 'is-danger': true}" closable @close="removeFromNewSelected(index)" > {{ included.name }} </b-tag> </b-taglist> </b-field> </template> </div>

ingrese la descripción de la imagen aquí

¿Qué está mal con este código? Gracias por cualquier ayuda.

about 4 years ago · Juan Pablo Isaza
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!