-
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
Conditional popovers #2188
Comments
Workaround:
... though that doesn't hide the tooltip if the field becomes valid. |
We should add proper support for disabled popovers / tooltips. Marking as a feature request. |
ngbTooltip was amended to only show a tooltip if the content is not falsy. It would be nice if ngbPopover behave the same way
In which version is this fixed? Because I use 1.1.2 (for Angular 5) and I still observe the failure behavior i.e. popover shows up even if content is empty |
how to enter the popover on hover through an element , do some thing on the popover (click a link) and then leave on mouseleave |
In the newest versions, there's a property called |
In #737, ngbTooltip was amended to only show a tooltip if the content is not falsy.
I'd like ngbPopover to behave the same way (currently, it shows an empty popover in this case).
Usecase
I'd like to show a different (or no) popover depending on the state of the element being hovered over. I had this working for a tooltip:
but the same approach with a popover
shows an empty popover if passed null.
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 5
ng-bootstrap: 1.0.0
Bootstrap: 4
The text was updated successfully, but these errors were encountered: