Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Scrollspy ViewDestroyedError

d-MediaLara pro asked 5 years ago


I have a component with scrollspy in it. When I leave the route this component is in and go to another route with another component I get an error:

Uncaught Error: ViewDestroyedError: Attempt to use a destroyed view: detectChanges

When I go back to the route with the component with the scrollspy I get the error again and scrollspy isn't working anymore.

Is this fixed in a new version of MDB or is there a fix for this I can use in the 6.2.4 version?


Damian Gemza staff answered 5 years ago


Dear @d-MediaLara

If you want to use the MDB Angular 6, please update to at least 6.2.6 version of MDB Angular.

If you're able to use the MDB Angular 7, please update to the latest version of MDB Angular (for now it's 7.5.4).

Best Regards,

Damian


d-MediaLara pro commented 5 years ago

Thank you for your answer!


d-MediaLara pro commented 5 years ago

I just updated tot 6.2.6. and i resolved my issue.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.4
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No