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

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

diff --git a/app/assets/javascripts/discourse/app/components/composer-body.js b/app/assets/javascripts/discourse/app/components/composer-body.js
index 0879ffe..d64a91c 100644
--- a/app/assets/javascripts/discourse/app/components/composer-body.js
+++ b/app/assets/javascripts/discourse/app/components/composer-body.js
@@ -213,6 +213,8 @@ export default Component.extend(KeyEnterEscape, {
     if (this._visualViewportResizing()) {
       window.visualViewport.removeEventListener("resize", this.viewportResize);
     }
+
+    cancel(this._lastKeyTimeout);
   },
 
   click() {

GitHub sha: 499c69c827f3409fc5422d9ee1a23d2fe91c71e5

This commit appears in #14194 which was approved by CvX. It was merged by jjaffeux.