Skip to content
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

Fix popover dismiss-on-next-click example #14156

Merged
merged 2 commits into from
Jul 18, 2014
Merged

Fix popover dismiss-on-next-click example #14156

merged 2 commits into from
Jul 18, 2014

Conversation

cvrebert
Copy link
Collaborator

Fixes #14038 by using <a tabindex="0"> instead of <button>.
Demo: http://jsfiddle.net/v5L7m/3/
Supporting research: https://gist.github.com/cvrebert/68659d0333a578d75372

Also moves the "Multiple-line links" callout together with the rest of the general Popover callouts.
Also switches from {trigger: 'focus'} to data-trigger="focus".

cvrebert added 2 commits July 15, 2014 16:57
…/ tabindex

Fixes #14038.

Research supporting this choice of approach:
    https://gist.github.com/cvrebert/68659d0333a578d75372

Why not <button>?
Even with a `tabindex` attribute, they don't gain focus when clicked upon in:
    * Mac OS X Firefox 30.0
    * Mac OS X Safari 7.0.5
@cvrebert cvrebert added this to the v3.2.1 milestone Jul 16, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Jul 16, 2014

:shipit: (I still stand in awe of all the research.)

@cvrebert
Copy link
Collaborator Author

@hnrch02 And this is why the Web's claims of cross-platform compatibility are overblown.

@hnrch02
Copy link
Collaborator

hnrch02 commented Jul 16, 2014

@cvrebert Word. But that's mostly due to the fact that the Web's cross-platform compatibility depends on third parties/vendors.

@cvrebert
Copy link
Collaborator Author

Nobody has objected or given criticism, so I'm gonna merge this.

cvrebert added a commit that referenced this pull request Jul 18, 2014
Fix popover dismiss-on-next-click example
@cvrebert cvrebert merged commit 780e8d7 into master Jul 18, 2014
@cvrebert cvrebert deleted the fix-14038 branch July 18, 2014 23:46
@cvrebert cvrebert mentioned this pull request Jul 18, 2014
@cvrebert
Copy link
Collaborator Author

@jjxtra
Copy link

jjxtra commented Jul 21, 2014

Thanks for the time put into this, it's very helpful.

nmorduch referenced this pull request in dancerfly/django-brambling Jul 31, 2014
Resolves #114
Hopefully appropriately given my track record today.
rufuspollock added a commit to datahub-v2/frontend that referenced this pull request Nov 18, 2017
…o fix display bug in safari - fixes #132.

Bug: in Safari popover does not show preventing people from logging out or viewing their dashboard.

Source: Known bug in bootstrap v3 and Safari - see twbs/bootstrap#14156 (for fix and link to underlying issue).

Fixed by adding tabindex="0".

NB: also checked in FF and FF seems fine though older FF may have an issue (FF also mentioned in the bootstrap issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popover - Dismiss on next click not working in firefox
3 participants