From c82b870d165b8a2a43c3e7597e34aed530aa8498 Mon Sep 17 00:00:00 2001 From: Rachid Mrad Date: Mon, 30 Oct 2023 19:31:53 -0400 Subject: [PATCH] fix JS bug where classList.removeAttribute --- src/registrar/assets/js/get-gov.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/registrar/assets/js/get-gov.js b/src/registrar/assets/js/get-gov.js index fa9c8d8ea..b659b117e 100644 --- a/src/registrar/assets/js/get-gov.js +++ b/src/registrar/assets/js/get-gov.js @@ -309,7 +309,8 @@ function prepareDeleteButtons(formLabel) { // Display the add more button if we have less than 13 forms if (isNameserversForm && forms.length <= 13) { - addButton.classList.removeAttribute("disabled"); + console.log('remove disabled'); + addButton.removeAttribute("disabled"); } if (isNameserversForm && forms.length < 3) {