-
-
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
Calling .popover('hide') prevents popover from open on next click #18860
Comments
Hi @sbhodge80! You appear to have posted a live example (http://fiddle.jshell.net/fxqzn4xd/1/show/light/), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
I have corrected the errors. The revised example is here: http://jsfiddle.net/fxqzn4xd/3/ Thanks |
Duplicate of #16732. |
Could you find a way to solve that issue? |
Hi, yes, I can't remember exactly what led me to this so can't credit it, but using the following code hooks into the hidden event to reset the popover's click state, which doesn't happen when you manually hide it:
|
Hi Kate, Thank you so much. That works nice. 👍 |
Hi,
I think I've found a bug where by if you manually close a popover using the .popover('hide') method, it takes two clicks on the triggering element to show it again: it's as if it thinks the popover is still open and the first click is to toggle it closed. I'm entirely prepared to believe this isn't a bug and just that I've misunderstood how it should work!
I've created a fiddle to demonstrate the issue. The popover contains a button that when clicked, closes the popover using .popover('hide'). When you click the button to show the popover again, nothing happens. Clicking it a second time then does show the popover. The fiddle is here:
http://jsfiddle.net/fxqzn4xd/3/
(updated following automated error check)
Thanks
Simon
The text was updated successfully, but these errors were encountered: