Adding missing removeEventListener lines

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-11-07 17:01:45 +03:00
1 parent 918a984b3f
commit e8af4e8b4c
1 file changed
+2
+2
View File
@@ -136,6 +136,8 @@ class NonInjectedMenu extends React.Component<MenuProps & Dependencies, State> {
window.removeEventListener("resize", this.onWindowResize);
window.removeEventListener("click", this.onClickOutside, true);
window.removeEventListener("scroll", this.onScrollOutside, true);
window.removeEventListener("blur", this.onBlur, true);
window.removeEventListener("contextmenu", this.onContextMenu, true);
}
componentDidUpdate(prevProps: MenuProps) {