Commit 3dd20ef6 authored by David Stutz's avatar David Stutz

Merge pull request #315 from Tyf0x/disabled_option_selection_fix

** Keyboard navigation fix: disabled elements are no longer selectable *...
parents c6ed1dc1 ab31eed2
......@@ -455,7 +455,7 @@
this.$button.click();
}
else {
var $items = $(this.$container).find("li:not(.divider):visible a");
var $items = $(this.$container).find("li:not(.divider):not(.disabled) a").filter(":visible");
if (!$items.length) {
return;
......@@ -527,6 +527,8 @@
if ($(element).is(':disabled')) {
$checkbox.attr('disabled', 'disabled')
.prop('disabled', true)
.parents('a')
.attr("tabindex", "-1")
.parents('li')
.addClass('disabled');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment