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

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