mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 18:11:52 +02:00
Reset the style of sortable row after dragging
This commit is contained in:
@@ -621,6 +621,10 @@ function selectSearchSearch() {
|
|||||||
|
|
||||||
window.addEventListener("mouseup", () => {
|
window.addEventListener("mouseup", () => {
|
||||||
dragHelper.classList.remove("dragging");
|
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);
|
parent.insertBefore(dragHelper.tagName === "TABLE" ? dragHelper.firstChild : dragHelper, placeholderRow);
|
||||||
placeholderRow.remove();
|
placeholderRow.remove();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user