-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Popover should appear on load when popover-is-open="true" #4264
Comments
@csymeonides this is not yet supported: https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L151-L153 |
Thanks for clarifying - any idea if there's a temporary workaround? |
Yea, this is fixed in the 0.13.4-SNAPSHOT and will be released soon. See this plunker for the code. |
Excellent thank you! |
Doesnt look like this issue ie pop-over/tooltip not opening on load is fixed in 0.13.4. Have the changes from 0.13.4-SNAPSHOT not been included in 0.13.4 ? |
@jikkujj - that's because |
But true is an expression isnt it? What i mean is that there should be a difference between "true" and "'true'" |
It all depends on context and how it's used: Here's what we are doing. The thing to remember is this attribute was added to allow people to programmatically control whether or not a popover or tooltip would display. Even if we allowed the user to hard-code a boolean What problem are you trying to solve whereby you want to just put the string value of a boolean in there and have it magically work? |
@icfantv, but isn't it the same as passing "true"? Adding $scope.openOnLoad = true; in the controller and then popover-is-open="openOnLoad" in the view doesn't make the popover show on page load. The effect is exactly the same as popover-is-open="true". Thank you. |
It's said on https://angular-ui.github.io/bootstrap/ "For any non-supported value, the trigger will be used to both show and hide the popover. Using the 'none' trigger will disable the internal trigger(s), one can then use the popover-is-open attribute exclusively to show and hide the popover.", but adding popover-trigger="none" to the above code doesn't help as well. Popover just doesn't get displayed at all. |
@nadyav, I'm on mobile at the moment. Can you please file a complete and new issue documenting the issue you think is a bug, complete with a minimally wor minting plunker and we will investigate. Please make sure you adhere to the issue template fully and use the latest versions of the requisite libraries in your reproduction. Also please link this issue in your new one. thanks. |
Trying to make a popover appear as soon as page loads. It seemed like this can be achieved by setting popover-is-open="true" but it doesn't work. Plunker
The text was updated successfully, but these errors were encountered: