From 72f6291519a047fd86a3757057a9f094b1eb55cb Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Wed, 15 Nov 2023 13:26:04 +0100 Subject: [PATCH] fix: event handler removal issue --- src/main/default/lwc/modal/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/default/lwc/modal/modal.js b/src/main/default/lwc/modal/modal.js index d011e4d..d28870d 100644 --- a/src/main/default/lwc/modal/modal.js +++ b/src/main/default/lwc/modal/modal.js @@ -28,7 +28,7 @@ export default class Modal extends LightningElement { } disconnectedCallback() { - window.removeEventListener(this.keyUpHandler); + window.removeEventListener('keyup', this.keyUpHandler); } handleCloseModal() {