-
-
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
Sticky Popovers With Click Events #3500
Comments
Set the $(element).popover({
trigger: 'manual'
}) or <a rel="popover" title="I'm sticky!" data-trigger="manual">Click me</a> |
In addition to setting the trigger to 'manual' you also need to manage your own events to show/hide/toggle the popover. In addition to the code above, you'll need to do something like: $(element).on('click', function() {
$(this).popover('toggle');
}); Hope that helps. |
Looks resolved. In the future, FYI, we'll be switching to click events for popovers. Until then, use the manual method. |
This was referenced Jan 7, 2021
This was referenced May 5, 2021
This was referenced May 26, 2021
This was referenced Jan 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to make a popover sticky, instead of
hover
binding, click to show, and it stays shown until the user clicks it again?Thanks.
The text was updated successfully, but these errors were encountered: