1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-30 23:36:47 +02:00

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
This commit is contained in:
Chris Rebert
2014-07-15 16:57:25 -07:00
parent dd22f59999
commit 11db482371
2 changed files with 11 additions and 14 deletions

View File

@@ -97,9 +97,8 @@
$('.tooltip-test').tooltip()
$('.popover-test').popover()
// Default & dismissible popover demos
// Popover demos
$('.bs-docs-popover').popover()
$('.bs-docs-popover-dismiss').popover({ trigger: 'focus' })
// Button state demo
$('#loading-example-btn').click(function () {