Skip to content

FocusMonitor does not remove event handler registered on document and window #7609

@yueluog

Description

@yueluog

Bug, feature request, or proposal:

In _registerDocumentEvents function, a few event listeners are registered on document and window objects: https://github.com/angular/material2/blob/4d97271786855598cfd18921641d5ffaafa079d8/src/cdk/a11y/focus-monitor.ts#L145
But I cannot find the corresponding removeEventListener. This may cause memory leak.

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions