From 0b69a5b0c21f3d7656d031e85cab333fc82a0ec9 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:20:34 -0700 Subject: [PATCH] Remove js for style --- src/registrar/assets/js/get-gov.js | 8 +------- .../templates/domain_request_requesting_entity.html | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/registrar/assets/js/get-gov.js b/src/registrar/assets/js/get-gov.js index 222c675e4..ee8ec5001 100644 --- a/src/registrar/assets/js/get-gov.js +++ b/src/registrar/assets/js/get-gov.js @@ -2938,13 +2938,7 @@ document.addEventListener("DOMContentLoaded", () => { if (radio != null) requestingSuborganization = radio?.checked && radio.value === "True"; requestingSuborganization ? showElement(suborgContainer) : hideElement(suborgContainer); requestingNewSuborganization.value = requestingSuborganization && select.value === "other" ? "True" : "False"; - if (requestingNewSuborganization.value === "True") { - selectParent.classList.add("padding-bottom-2"); - showElement(suborgDetailsContainer); - }else { - selectParent.classList.remove("padding-bottom-2"); - hideElement(suborgDetailsContainer); - } + requestingNewSuborganization.value === "True" ? showElement(suborgDetailsContainer) : hideElement(suborgDetailsContainer); } // Add fake "other" option to sub_organization select diff --git a/src/registrar/templates/domain_request_requesting_entity.html b/src/registrar/templates/domain_request_requesting_entity.html index 3dac6a974..b16e7e402 100644 --- a/src/registrar/templates/domain_request_requesting_entity.html +++ b/src/registrar/templates/domain_request_requesting_entity.html @@ -43,7 +43,7 @@