mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 16:44:04 -05:00
Fix “Add new domain block” button using last submitted instead of current search value (#22485)
Fixes #22162
This commit is contained in:
parent
558ac411c4
commit
a3b24d483e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user