-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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 not destroyed correctly while showing #10335
Comments
Your fiddle is using RC 2 CSS. Please update it to use the v3.0.0 final release CSS and then re-test. |
Similar to #10260. |
done. But still the same problem. |
X-Ref: #10740 |
Popover hide method seems to mess up with the z index value of the popover. I need to close all other popovers when clicking on a new one, I'm achieving this behaviour simply by triggering popovers manually : in the click function, I call toggle on the current popover then call the hide method of every popovers except the current one. See my jsfiddle :
As previously hinted, using .popover("hide") on a shown popover doesn't hide it properly, his opacity is set to zero however it's still there above other stuff so my guess is that z-index is not reset accordingly. |
hi, |
I have the same problem. When we use the button to hide, it's OK, but when we use the API by calling 'hide', the element only has a 0 opacity so it messes up the other elements on the page. |
I have the same issue. I believe that a popover should be removed from DOM on hide, not just hidden. But at least it should be display:none instead of display:block |
I have similar project in which I create popover dynamically and when I call the destroy method the popover DOM elements remain and are not removed. |
Temporary solution (works in my case, i.e AngularJS directive with multiple position top popovers): after:
|
Closing as duplicate of #10260. |
@j8 +1 this solved my problem. |
The popover will not destroy properly while showing.
Here is a fiddle to demonstrate it: http://jsfiddle.net/vBUFu/20/ [edited].
Hover over the button and wait 5sec to see what i mean.
(I changed the opacity of the fade class so that the popover stays visible.)
The problem is that even with opacity 0, one cannot click on elements behind it!
It works when its manually shown, but not with events like 'hover' or 'click'.
The text was updated successfully, but these errors were encountered: