Closed RamEduard closed 5 years ago
Just add next code in node_modules/@nebular/components/datepicker/datepicker.component.js:
NbBasePicker.prototype.hide = function () { // check if ref exists in this if(this.ref) { this.ref.detach(); } // save current value if picker was rendered if (this.picker) { this.queue = this.value; this.pickerRef.destroy(); this.pickerRef = null; this.container = null; } };
NbBasePicker.prototype.ngOnDestroy = function () { this.alive = false; this.hide(); // check if ref exists in this if(this.ref) { this.ref.dispose(); } };
Resolved by #1116
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
When change my page component in my admin throws the error:
Expected behavior:
When I try to change the page do not throw the exception. It can be a validation in the component or I don't know, something allows prevent this exception.
Steps to reproduce:
Related code:
metrics.component.ts
metrics.component.html
transactions/transactions.component.ts
transactions/transactions.component.html
users/users.component.ts
users/users.component.html
Other information:
npm, node, OS, Browser
Angular, Nebular
package.json