Draggable table with bootstrap vue
In line const table = el.querySelector('table');
you are trying to get the table element. The var el
is the table element. That is why it return null when you use querySelector
after assigning the correct table variable the error disappears
const table = el;
table._sortable = createSortable(table.querySelector("tbody"), binding.value, vnode);
Link to working fiddle