Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that document functions exist before calling in ngOnDestroy() #2327

Closed
cagataycivici opened this issue Mar 17, 2017 · 2 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@cagataycivici
Copy link
Member

Issue #1672 fixed a number of problems, but several components seem to have been left out of that set of fixes. These listener calls also need checks to ensure that the listeners exist before they are called during destroy:


if(this.closeOnEscape && this.closable) {

if(this.responsive) {

this.documentClickListener();

@cagataycivici cagataycivici self-assigned this Mar 17, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 17, 2017
@cagataycivici cagataycivici added this to the 2.0.4 milestone Mar 17, 2017
cagataycivici pushed a commit that referenced this issue Mar 17, 2017
@andrii-oleksyshyn
Copy link

399e7b6 doesn't contain fix for the context menu component

@cagataycivici
Copy link
Member Author

Please see;

#2349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants