From 2467c39b53490a071ada751be4112478eebe8ab5 Mon Sep 17 00:00:00 2001 From: GazHay Date: Wed, 12 Apr 2023 21:02:06 +0100 Subject: [PATCH] sortEnd event added --- sortable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sortable.js b/sortable.js index 4f4a5d2..5066ba1 100644 --- a/sortable.js +++ b/sortable.js @@ -106,6 +106,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); } } catch (error) {