-
Notifications
You must be signed in to change notification settings - Fork 6.7k
tooltip-append-to-body="true" should be simply: tooltip-append-to-body #4495
Comments
tooltip-append-to-body="true"
should be simply tooltip-append-to-body
tooltip-append-to-body="true"
should be simply tooltip-append-to-body
We don't have an I ask that you please do the PR because there's nothing wrong with what we have now and it is working. Thus, it's probably going to be a very low priority for us to change. |
This would actually require a breaking change, and a potentially onerous one - these lines are the culprit. The change needed would be var appendToBodyVal = (prefix + 'AppendToBody') in attrs;
appendToBody = appendToBodyVal || appendToBody; I am inclined to reject this request. |
This isn't true in all cases. I set up my app to set this option by default, like so: angular.module("myApp")
.config(["$tooltipProvider", ($tooltipProvider: angular.ui.bootstrap.ITooltipProvider) => {
$tooltipProvider.options({
appendToBody: true
});
}]) and I use |
Valid point by @ChrisMBarr, my vote: 👎 |
Great point @ChrisMBarr - closing as invalid. |
Either way I think a precision/example in the documentation would be nice because this option is present on none of the existing examples. |
totally agree with @gaultier, it would be nice to mention this in the documentation as it is not the expected behavior (in my opinion). Why can't the attribute be checked to be neither undefined nor false though? |
@deje101, maintaining this OSS library requires a fair amount of work by many people. Please extend us the courtesy of searching both open and closed issues before commenting. There is an open issue from a few days ago, #4945, that is tracking this. |
Sorry @icfantv, I just randomly found this thread when I was searching for a solution on google. I will check for new issues before posting next time. |
No worries and thanks. |
Hello,
When we use the tooltip element and we would like to append it to the body, we expect to use the option this way:
But in fact the only possible usage is this way:
This is counter-intuitive, hard to detect, and every other component does it the simple way.
This option should probably be used with the shortest syntax.
Could we either way add an example in the doc?
The only hint to use it that way is here: https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/test/tooltip.spec.js#L538
The text was updated successfully, but these errors were encountered: