-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #7939 - Calendar is not working correctly in overlayPanel
- Loading branch information
1 parent
fb54f98
commit f4c6ca1
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f4c6ca1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting an error from this change, 'Cannot read property 'runOutsideAngular' of undefined'.
This only happens in AOT, or production build. So I cannot reproduce on stackblitz. :(
Hopefully I can figure something out... Don't understand why the zone is undefined.
f4c6ca1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a SO post about zone being undefined and the fix was to explicitly inject NgZone.
https://stackoverflow.com/questions/46536430/prerendering-failed-because-of-ngzone-reference-error
Seems to work for this issue too. If I have some extra time to remember how to contribute, I will try to make a PR with the fix.
But if I forget or someone needs it before then...
Change
private zone: NgZone
to@Inject(NgZone) private zone: NgZone
inside calendar.tsYou will also need to import Inject from @angular/core