From 585117a8ed5b0629af39b3b7f07a2b33965c0986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Wed, 25 Sep 2024 10:33:03 +0200 Subject: [PATCH] fix accordion e2e --- .../components/src/components/post-accordion/post-accordion.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/components/src/components/post-accordion/post-accordion.tsx b/packages/components/src/components/post-accordion/post-accordion.tsx index 04a597916e..407c5cf324 100644 --- a/packages/components/src/components/post-accordion/post-accordion.tsx +++ b/packages/components/src/components/post-accordion/post-accordion.tsx @@ -50,6 +50,8 @@ export class PostAccordion { @Listen('postToggle') collapseToggleHandler(event: CustomEvent) { + event.stopPropagation(); + const toggledItem = event.target as HTMLElement; const closestParentAccordion = toggledItem.closest('post-accordion');