Skip to content

Commit

Permalink
fix: event handler removal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Nov 15, 2023
1 parent 505e2c7 commit 72f6291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/default/lwc/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class Modal extends LightningElement {
}

disconnectedCallback() {
window.removeEventListener(this.keyUpHandler);
window.removeEventListener('keyup', this.keyUpHandler);
}

handleCloseModal() {
Expand Down

0 comments on commit 72f6291

Please sign in to comment.