mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
DEV: prevents _lastKeyTimeout to leak after component lifecycle (#14194)
This commit is contained in:
parent
49b2bb294e
commit
499c69c827
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user