Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Support for SSR #4

Closed
soerenuhrbach opened this issue Jul 25, 2019 · 1 comment
Closed

Support for SSR #4

soerenuhrbach opened this issue Jul 25, 2019 · 1 comment

Comments

@soerenuhrbach
Copy link

soerenuhrbach commented Jul 25, 2019

While trying to use server side rendering in my angular 8 application I got following error message:

TypeError: Cannot read property 'off' of at NgSelect2Component.ngOnDestroy

Since jQuery does not work on server side 'this.element' is not defined.
When NgSelect2Component.ngOnDestroy is called, there is not validation that 'this.element' is defined.

By adding a simple validation the bug has been fixed.

#5

@icecoldfire
Copy link

icecoldfire commented Jul 26, 2019

#5 has been merged

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

No branches or pull requests

2 participants