Commit ab31eed2 authored by Tyf0x's avatar Tyf0x

** Keyboard navigation fix: disabled elements are no longer selectable **

Signed-off-by: 's avatarTyf0x <Tyf0x@users.noreply.github.com>
parent 7f31ccbc
......@@ -453,7 +453,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;
......@@ -525,6 +525,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