]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
popover dismiss-on-next-click example: instead of <button>, use <a> w/ tabindex
authorChris Rebert <code@rebertia.com>
Tue, 15 Jul 2014 23:57:25 +0000 (16:57 -0700)
committerChris Rebert <code@rebertia.com>
Tue, 15 Jul 2014 23:57:54 +0000 (16:57 -0700)
commit11db482371ed8195093139ddb4eb31177ada0607
treecb0309dba7aecddad287590f8aaf2e34bcc067df
parentdd22f599998cc07c18b6643a856d5acda6c5c122
popover dismiss-on-next-click example: instead of <button>, use <a> w/ 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
docs/_includes/js/popovers.html
docs/assets/js/src/application.js