Merge branch 'main' of https://github.com/GSA/notifications-admin into 2138-cancel-button-CSV

This commit is contained in:
Jonathan Bobel
2025-04-21 16:03:43 -04:00
32 changed files with 737 additions and 733 deletions

View File

@@ -38,6 +38,7 @@ function attachValidation() {
const validatedRadioNames = new Set();
inputs.forEach((input) => {
if (input.type === "hidden") return;
const errorId = input.type === "radio" ? `${input.name}-error` : `${input.id}-error`;
let errorElement = document.getElementById(errorId);
@@ -85,6 +86,7 @@ function attachValidation() {
});
inputs.forEach((input) => {
if (input.type === "hidden") return;
input.addEventListener("input", function () {
const errorId = input.type === "radio" ? `${input.name}-error` : `${input.id}-error`;
const errorElement = document.getElementById(errorId);