Skip to content

Commit

Permalink
stops propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
gfellerph committed Oct 23, 2024
1 parent bd4cbb1 commit e1d6ec2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export class PostAccordion {

@Listen('postToggle')
collapseToggleHandler(event: CustomEvent<boolean>) {
event.stopPropagation();

const toggledItem = event.target as HTMLElement;
const closestParentAccordion = toggledItem.closest('post-accordion');

Expand Down

0 comments on commit e1d6ec2

Please sign in to comment.