DEV: prevents _lastKeyTimeout to leak after component lifecycle (#14194)

This commit is contained in:
Joffrey JAFFEUX 2021-08-31 15:22:25 +02:00 committed by GitHub
parent 49b2bb294e
commit 499c69c827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ export default Component.extend(KeyEnterEscape, {
if (this._visualViewportResizing()) { if (this._visualViewportResizing()) {
window.visualViewport.removeEventListener("resize", this.viewportResize); window.visualViewport.removeEventListener("resize", this.viewportResize);
} }
cancel(this._lastKeyTimeout);
}, },
click() { click() {