From 85c0c8f0032d5e7e859f7fec237e159c9dbee2e5 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Thu, 31 Oct 2024 22:43:29 +0100 Subject: [PATCH] Fix disappearing dragged row --- adminer/static/functions.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/adminer/static/functions.js b/adminer/static/functions.js index ff420020..b07835af 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -484,10 +484,8 @@ function selectAddRow(event) { } } - const buttons = qsa('.icon', row); - for (const button of buttons) { - button.onclick = selectRemoveRow; - } + const button = qs('.remove', row); + button.onclick = selectRemoveRow; const parent = field.parentNode.parentNode; if (parent.classList.contains("sortable")) {