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

217
Views
Vue template with v-if condition does not react on value change

I have a template with v-if condition base on the data value. But if I change the value it does not redrav the template. I see the value ich changed in Vue debugger but v-if blocks it like it was empty like on component load.

Here is the code:

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

enter image description here

What is wrong with this code? Thanks for any help.

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!