Skip to content

Commit

Permalink
fix(dialog): remove #onKeyDown from disconnectedCallback()
Browse files Browse the repository at this point in the history
Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
adamjohnson and bennypowers authored Jan 2, 2025
1 parent 93fbfd5 commit 06c2334
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion elements/rh-dialog/rh-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export class RhDialog extends LitElement {

disconnectedCallback() {
super.disconnectedCallback();
this.removeEventListener('keydown', this.#onKeyDown);
this.#triggerElement?.removeEventListener('click', this.onTriggerClick);
}

Expand Down

0 comments on commit 06c2334

Please sign in to comment.