-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Popover directive doesn't work with Safari when using popover-trigger="focus" #3687
Comments
Please provide a plunkr reproducing your problem. |
I've found focus to be flaky in Safari, does it work on a click when you switch to a click trigger? Does it work when you tab onto the button with a focus trigger? _edit_
Then implement like so:
|
@RobJacobs awesome, your suggestion work perfectly! Thanks. |
Glad you have a workaround. That still leaves this as a bug for Safari though, right @RobJacobs ? |
I don't think it's a bug in our code, Safari just doesn't seem to propagate the focus event from a click event. I didn't see any preventDefault or stopPropagation in the code either. |
It's unfortunate that references like this one aren't up to date with the newest browsers. |
Maybe a fix is to document such workaround for Safari at the Tooltip Set Trigger section? |
See discussion at Twitter Bootstrap: twbs/bootstrap#11788 |
We should probably put a workaround in UI Bootstrap then, even if Safari's buggy behavior is the culprit in this case. |
Firefox on OSX has the same problem |
+1 |
Can anyone confirm whether or not 1) this is still an issue and 2) if Apple intends on releasing a new version of Safari with El Capitan? And if so, is anyone running the beta that can test to see if this is still an issue? Thanks. |
Even if they do, we should still investigate this - Safari 7 is still the most used version of Safari out in the wild, it may take a while before we see this fixed at the browser level. |
Just confirmed in saucelabs that it does not work in El Capitan with Safari 8.1. I used the following plunk: http://plnkr.co/edit/ZDdiKt1VvQVAwxwblwvW?p=preview |
@wesleycho, agreed. I'm a little confused. Is the fix this or is it this? @chrisirhc, do you remember? @wesleycho, what type of workaround do we want? something like:
please note that I had to hold my nose while typing that... |
Nice @RobJacobs. I'm ok with this being a wontfix then and adding comments to both the FAQs and popover/tooltip docs with a Nota Bene for OSX Safari 7.0+ users. @wesleycho, you cool with that? |
I'm fine with that resolution, although perhaps @Foxandxss might have something to say about the docs |
Yeah, it is always good to document this stuff. If I understood correctly, OSX safari users needs to use an element with a tagindex if they want to use |
Alright, will create a PR to fix this via doc. |
@Foxandxss don't forget about this :) . |
Wari wari! Will write it down on my todo list. |
Looks like this is already in the docs from 4e60e22 - closing as resolved. |
html: JS: |
We do not support the Twitter Bootstrap JS @QuaoQuo - please do not comment on closed issues for technical support, GitHub issues are not the place for that. |
Hi guys,
Ex: this works on chrome and firefox, but not on Safari (8.0.6). I'm on Mac OS X Yosemite
< a href="" popover="hola!" popover-trigger="focus">Hello!< / a >
When in Safari, when I click on that link, nothing shows up.
Thanks!
The text was updated successfully, but these errors were encountered: