While using vueJS and Laravel, I encountered an issue with my modal losing its shape when I tried to display data in it. Even duplicate forms failed to show the data correctly. This occurred when I clicked on a button to open the modal and show the data.
https://i.sstatic.net/z7f3X.png
Additionally, I have a function in vue that takes a parameter, and I want to be able to click on a button in my table to display data related to an assistance and then show its actions.
<tr v-for="data in datosAsistencia" :key="data.codAsistencia">
<td>{{ data.codAsistencia }}</td>
<td>{{ data.codContrato }}</td>
<td>{{ data.fecha }}</td>
<td>{{ data.mensaje }}</td>
<td>{{ data.nombre }}</td>
<td>
<select @change="cambiarEstado(data.codAsistencia, $event)">
<option value="0" selected>{{data.estado}}</option>
<option value="en_proceso">En proceso</option>
<option value="finalizada">Finalizada</option>
</select>
</td>
<td><a href="#" class="btn btn-info" data-toggle="modal" data-target="#create" @click="visualizar(data.codAsistencia)">Visualizar</a></td>
The weirdest part is that if I start changing tabs in the tabPane, the modal shows up correctly in the end. I am not sure why this happens. Any help would be greatly appreciated.