Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

fix: fixing nativeelement undefined #1430

Merged
merged 1 commit into from
Dec 4, 2019
Merged

Conversation

feeloor
Copy link
Contributor

@feeloor feeloor commented Dec 4, 2019

Fixing bug "TypeError: Cannot read property 'nativeElement' of undefined".

This was introduced with the upgrade to Angular 8. Since we call the render() function in ngOnChanges we need to use static: true to make sure the ViewChild's are available even if it occur before ngAfterViewInit.

closes #1428

@feeloor feeloor self-assigned this Dec 4, 2019
@feeloor feeloor merged commit e130734 into master Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read property 'nativeElement' of undefined
2 participants