Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

251
Visualizações
Vue Draggable Table Row [Vue warn]: Error in render: "TypeError: Cannot read property 'name' of undefined"

I m trying to implement draggable for my table,and my table format looks like this

and from here I was trying to implement the draggable but encounter the error below every time I trying to drag and drop the item in the table

[Vue warn]: Error in render: "TypeError: Cannot read property 'name' of undefined"

enter image description here

here is the full code include the script

<table class="table table-bordered">
        <thead>
            <th></th>
            <th>Name</th>
            <th>Year</th>
            <th>AGE</th>
        </thead>
        <tbody is="draggable" group="people" :list="people" tag="tbody">
            <template v-for="(person, p_index) in people">
                <tr :key="'person_'+p_index">
                    <td rowspan="2">
                        <button type="button" name="dragbtn" class="btn btn-icon btn-primary btn-xs">
                            <i class="la la-arrows"></i>
                        </button>
                    </td>
                    <td rowspan="2">@{{ person.name }}</td>
                    <td>2022</td>
                    <td>@{{person.age}}</td>
                </tr>
                <tr>
                    <td>2021</td>
                    <td>@{{person.prev_age}}</td>
                </tr>
            </template>
        </tbody>
    </table>


<script>
Laravel.vueMixins.push({
    data:{
        people: [
            {name: "Abby", age:16, prev_age:15},
            {name: "Brooke", age:17, prev_age:16},
            {name: "Courtenay", age:18, prev_age:17},
            {name: "David", age:19, prev_age:18}
        ],
    },
});
</script>

anyone has solution on this problem ?

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda