From dd6f355b7864a3523ca0b2e6d2c0683a4d2eb18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Cu=C3=A9llar=20Hidalgo?= Date: Wed, 11 Dec 2024 12:39:51 -0600 Subject: [PATCH] Fix unsupported aria attributes in dashboard (#6980) * disable set aria-expanded * fix #6840 --------- Co-authored-by: Daniel Pierce --- app/assets/javascripts/hyrax/collapse.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/hyrax/collapse.js b/app/assets/javascripts/hyrax/collapse.js index 47e6c6ae08..e8b71dbd75 100644 --- a/app/assets/javascripts/hyrax/collapse.js +++ b/app/assets/javascripts/hyrax/collapse.js @@ -40,10 +40,10 @@ function getStatusActivity(){ } else if(isCollapsed){ resultDiv.classList.remove("in"); - resultDiv.setAttribute("aria-expanded", "false"); + // resultDiv.setAttribute("aria-expanded", "false"); }else{ resultDiv.classList.add("in"); - resultDiv.setAttribute("aria-expanded", "true"); + // resultDiv.setAttribute("aria-expanded", "true"); } } @@ -55,10 +55,10 @@ function getStatusSettings(){ } else if(isCollapsed){ resultDiv.classList.remove("in"); - resultDiv.setAttribute("aria-expanded", "false"); + // resultDiv.setAttribute("aria-expanded", "false"); }else{ resultDiv.classList.add("in"); - resultDiv.setAttribute("aria-expanded", "true"); + // resultDiv.setAttribute("aria-expanded", "true"); } }