Skip to content

Commit

Permalink
fix(pie-card): DSW-2425 add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raoufswe committed Sep 24, 2024
1 parent 1a30847 commit 4c738b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/pie-card/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class PieCard extends LitElement implements CardProps {

private onClickHandler (event: Event) {
if (this.disabled) {
// needed to intercept/prevent click events when the card is disabled.
event.preventDefault();
event.stopPropagation();
}
Expand Down

0 comments on commit 4c738b4

Please sign in to comment.