diff --git a/sortable.js b/sortable.js index 8d4b43e..9808638 100644 --- a/sortable.js +++ b/sortable.js @@ -113,6 +113,8 @@ document.addEventListener('click', function (e) { // And finally replace the unsorted tbody with the sorted one table.replaceChild(clone_tbody, org_tbody); } + const event = new Event("sortEnd"); + table.dispatchEvent(event); } // eslint-disable-next-line no-unused-vars }