From 92f3e0ca004696ce42ca0870762f3c47e54685e2 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Tue, 22 Oct 2024 21:40:27 +0200 Subject: [PATCH] Reset the style of sortable row after dragging --- adminer/static/functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 82a544a0..bbff8778 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -621,6 +621,10 @@ function selectSearchSearch() { window.addEventListener("mouseup", () => { dragHelper.classList.remove("dragging"); + dragHelper.style.top = null; + dragHelper.style.left = null; + dragHelper.style.width = null; + parent.insertBefore(dragHelper.tagName === "TABLE" ? dragHelper.firstChild : dragHelper, placeholderRow); placeholderRow.remove();