aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <[email protected]>2013-12-29 19:23:15 -0800
committerfat <[email protected]>2013-12-29 19:23:15 -0800
commit2a0b99104c596952bdac6a40053843dfba98534f (patch)
treed8923f6bbbc3c628d0e900c2666981dd09a2400d
parent8a62f211131e2a5be7b7413281845c2f66716be4 (diff)
parentbbe551044c00bf89fdc9bdfac809fead62767bdb (diff)
downloadbootstrap-2a0b99104c596952bdac6a40053843dfba98534f.tar.xz
bootstrap-2a0b99104c596952bdac6a40053843dfba98534f.zip
Merge branch 'dropdown-aria-roles' of git://github.com/plumlee/bootstrap into plumlee-dropdown-aria-roles
Conflicts: js/dropdown.js
-rw-r--r--js/dropdown.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/dropdown.js b/js/dropdown.js
index b19b255ae..1e25403fc 100644
--- a/js/dropdown.js
+++ b/js/dropdown.js
@@ -67,7 +67,8 @@
return $this.click()
}
- var $items = $('[role=menu] li:not(.divider):visible a', $parent)
+ var desc = ' li:not(.divider):visible a'
+ var $items = $parent.find('[role=menu]' + desc + ', [role=listbox]' + desc)
if (!$items.length) return
@@ -140,6 +141,6 @@
.on('click.bs.dropdown.data-api', clearMenus)
.on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
- .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]', Dropdown.prototype.keydown)
+ .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu], [role=listbox]', Dropdown.prototype.keydown)
}(jQuery);