mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
Allow listbox AIRA role on dropdown component.
This commit is contained in:
parent
25ec09f06a
commit
bbe551044c
@ -77,7 +77,8 @@
|
|||||||
return $this.click()
|
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
|
if (!$items.length) return
|
||||||
|
|
||||||
@ -149,6 +150,6 @@
|
|||||||
.on('click.bs.dropdown.data-api', clearMenus)
|
.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', '.dropdown form', function (e) { e.stopPropagation() })
|
||||||
.on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
|
.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);
|
}(jQuery);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user