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

nzTooltip ViewDestroyedError regression in 8.5.0 #4435

Closed
snebjorn opened this issue Nov 15, 2019 · 4 comments
Closed

nzTooltip ViewDestroyedError regression in 8.5.0 #4435

snebjorn opened this issue Nov 15, 2019 · 4 comments

Comments

@snebjorn
Copy link

snebjorn commented Nov 15, 2019

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-q78kmv

Steps to reproduce

  • open the stackblitz provided
  • open the console
  • click the button
  • observe that an error is throw in the console and it didn't route

What is expected?

Same as above but with v8.4.1 and it works as expected
https://stackblitz.com/edit/ng-zorro-antd-start-zy6nrq

What is actually happening?

When a router link element (or just something that routes) have a tooltip it'll throw the below error

Error: Uncaught (in promise): Error: ViewDestroyedError: Attempt to use a destroyed view: detectChanges

Example

<button
  nz-button
  nzType="primary"
  nz-tooltip
  nzTooltipTitle="TOOLTIP!"
  routerLink="extra"
>
  Click me
</button>
Environment Info
ng-zorro-antd 8.5.0
Browser Chrome Version 78.0.3904.87 (Official Build) (64-bit)
@DouglasOGarrido
Copy link

Yes, i 'm having the same issue.

@wzhudev
Copy link
Member

wzhudev commented Nov 16, 2019

Will be closed in #4418.

@wzhudev wzhudev closed this as completed Nov 18, 2019
@wzhudev
Copy link
Member

wzhudev commented Nov 18, 2019

Please help us revalidate when 8.5.1 is released. Thank you!

@snebjorn
Copy link
Author

@wendzhue I can confirm it works. Thanks for the quick fix!

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

No branches or pull requests

4 participants