You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
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.
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
The text was updated successfully, but these errors were encountered: