Browse Source

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

Fixes #22162
closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
a3b24d483e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/packs/admin.js

+ 1
- 1
app/javascript/packs/admin.js 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);

Loading…
Cancel
Save