Skip to content

Commit

Permalink
fix(card): ensure teardown logic is called when disconnected (#7289)
Browse files Browse the repository at this point in the history
**Related Issue:** N/A

## Summary

This fixes a lifecycle hook typo that prevented teardown logic from
running.
  • Loading branch information
jcfranco authored Jul 7, 2023
1 parent 4e602e8 commit d07e322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calcite-components/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class Card implements ConditionalSlotComponent, LocalizedComponent, T9nCo
connectMessages(this);
}

disonnectedCallback(): void {
disconnectedCallback(): void {
disconnectConditionalSlotComponent(this);
disconnectLocalized(this);
disconnectMessages(this);
Expand Down

0 comments on commit d07e322

Please sign in to comment.