From d70f0f12fb94f95403be30255aa454f2dcc44e80 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:08:52 +0100 Subject: [PATCH] Update packages/components/src/components/accordion/accordion.lite.tsx Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> --- .../components/src/components/accordion/accordion.lite.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/components/src/components/accordion/accordion.lite.tsx b/packages/components/src/components/accordion/accordion.lite.tsx index b9bb53354a2..36625874d58 100644 --- a/packages/components/src/components/accordion/accordion.lite.tsx +++ b/packages/components/src/components/accordion/accordion.lite.tsx @@ -75,9 +75,7 @@ export default function DBAccordion(props: DBAccordionProps) { childDetails )) { if (state._name === '') { - if (details.hasAttribute('name')) { - details.removeAttribute('name'); - } + details.removeAttribute('name'); } else { details.name = state._name; }