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

Server side rendering fails because of "navigator.userAgent" use in autoclose #3025

Closed
orestisioakeimidis opened this issue Feb 14, 2019 · 1 comment · Fixed by #3027
Closed

Comments

@orestisioakeimidis
Copy link

Bug description:

The server side rendering fails with ReferenceError: navigator is not defined. It is caused by the following:

const iOS = !!navigator.userAgent && /iPad|iPhone|iPod/.test(navigator.userAgent);

Link to minimally-working StackBlitz that reproduces the issue:

Not applicable because of server side rendering.

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 7.2.4

ng-bootstrap: 4.0.3

Bootstrap: 4.3.1

@maxokorokov
Copy link
Member

@orestisioakeimidis thanks for reporting, should be fixed in 4.0.4 next week. We'll set up SSR tests for CI to avoid this in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants