-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Popover is displayed after source element is destroyed #4657
Comments
Also happens with basic tooltips if you set a A quick look into the code in
|
The code is using
Of course there might be better way of handling this, this is just my preference on how to handle code. ng-bootstrap/src/tooltip/tooltip.ts Lines 221 to 247 in b5d5feb
|
I ended up with patching it by myself by adding the line |
That certainly works. |
A PR would have been helpful, if you had a fix ;) |
@maxokorokov When I checked the pull request last time, there is already fix that's there. |
Bug description:
I have an element that shows popover on hover with delay. If element is destroyed before tooltip is displayed popover shows at top-left page corner. Expected behavior - don't show popover if element has been destroyed
Click on button before tooltip is displayed.
Link to minimally-working StackBlitz that reproduces the issue:
https://stackblitz.com/edit/angular-cdwked
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 17.0.8
ng-bootstrap: 16.0.0
Bootstrap: 5.3.2
The text was updated successfully, but these errors were encountered: