-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Can dismissible popover work without href="#" ? #15277
Comments
So, do you have a specific working change that you're proposing, or are you just asking whether we know of some alternative that doesn't involve |
If you change the |
|
I got it to work with the button attributes when I changed it to |
|
Oh so I just added the JSFiddle: http://jsfiddle.net/goffley3/kdh9xxp9/ |
Interestingly, removing |
@cvrebert @mdo Looking through the documentation it explains it as well http://getbootstrap.com/javascript/#popovers |
@georGEO1989 Huh? |
@cvrebert In that section under "Dismiss on next click" on the link http://getbootstrap.com/javascript/#popovers it says that to make the popover disappear you need to add the |
Right, I'm aware of that. I wrote that part of those docs. The question here is about |
Oh I'm sorry my bad. This is my first attempt to contribute to an open source project 😳 |
@cvrebert Thanks for the quick response. I was a bit busy with other stuff. As I mentioned I think it would be best if this worked without href. But I don't have a working change for that myself. I'm going with using My best suggestion would be to add a remark in the |
I tested http://jsbin.com/zuzoce/5 (which removes the |
Removing the href is fine by me. |
Why all you don't use |
The dismissable popover is not working for me in Bootstrap 3.3.1. No popup window appears anymore when I add a
data-trigger="focus"
attribute.See this fiddle:
http://jsfiddle.net/bartvanderwal/qjaL0tp4/
By comparing it in detail with the standard Bootstrap example on your website I found out that this can be fixed by adding a
href="#'
. See this Fiddle:http://jsfiddle.net/bartvanderwal/29hbf4no/
But I'd prefer not to need a
href
😄, and that does works for the non-dismissable version, so it'd be more consistent.The text was updated successfully, but these errors were encountered: