Skip to content

Commit

Permalink
Modal: fix key events dispose (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trochonovitz authored Nov 10, 2023
1 parent d63c66b commit d37ebba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Modal extends BaseComponent {
}

dispose() {
[window, this._dialog].forEach((htmlElement) =>
[window, document, this._dialog].forEach((htmlElement) =>
EventHandler.off(htmlElement, EVENT_KEY)
);

Expand Down

0 comments on commit d37ebba

Please sign in to comment.