1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 09:39:51 +02:00

Reset the style of sortable row after dragging

This commit is contained in:
Peter Knut
2024-10-22 21:40:27 +02:00
parent aa1266e4f2
commit 92f3e0ca00

View File

@@ -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();