1
0
Fork 1
forked from fedi/mastodon

Fix “Add new domain block” button using last submitted instead of current search value (#22485)

Fixes #22162
This commit is contained in:
Claire 2023-01-05 13:42:38 +01:00 committed by talon
parent 37e091f302
commit 9364bbafb5

View file

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