From a3b24d483eccffd01a1262dcc0dcd60a634b65ab Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 5 Jan 2023 13:42:38 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9CAdd=20new=20domain=20block?= =?UTF-8?q?=E2=80=9D=20button=20using=20last=20submitted=20instead=20of=20?= =?UTF-8?q?current=20search=20value=20(#22485)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #22162 --- app/javascript/packs/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/packs/admin.js b/app/javascript/packs/admin.js index 4e817129d..038e9b434 100644 --- a/app/javascript/packs/admin.js +++ b/app/javascript/packs/admin.js @@ -192,7 +192,7 @@ ready(() => { } document.querySelector('a#add-instance-button')?.addEventListener('click', (e) => { - const domain = document.getElementById('by_domain')?.value; + const domain = document.querySelector('input[type="text"]#by_domain')?.value; if (domain) { const url = new URL(event.target.href);