Skip to content

Commit

Permalink
refactor(cxl-ui): [cxl-accordion-card] remove click event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed Sep 11, 2023
1 parent 8c28cc7 commit d09ce3a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/cxl-ui/src/components/cxl-accordion-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ import { AccordionPanel } from '@vaadin/accordion/src/vaadin-accordion-panel';

@customElement('cxl-accordion-card')
export class CXLAccordionCardElement extends AccordionPanel {
ready() {
super.ready();

// Stop card open on title click.
this.querySelectorAll(':any-link').forEach((el) => {
el.addEventListener('click', (e) => {
e.stopPropagation();
});
});
}

static get is() {
return 'cxl-accordion-card';
}
Expand Down

0 comments on commit d09ce3a

Please sign in to comment.