Fix find_focusable_child to use lowercase when comparing with focusable widgets
This commit is contained in:
1 parent
fe477e63f5
commit
ff5201511b
1 file changed
+2
-4
+2
-4
@@ -3177,12 +3177,10 @@
|
||||
if (!element.is(':visible')) {
|
||||
return null;
|
||||
}
|
||||
if (~['input', 'select', 'textarea'].indexOf(element[0].tagName)) {
|
||||
if (~['input', 'select', 'textarea'].indexOf(
|
||||
element[0].tagName.toLowerCase())) {
|
||||
return element;
|
||||
}
|
||||
if (element.children()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
children = Sao.common.get_focus_chain(element);
|
||||
for (i = 0, len = children.length; i < len; i++) {
|
||||
|
||||
Reference in new issue
Block a user