提交 56ba2993 编写于 作者: I isidor

list: do not steal focus for hidden elements

上级 9eedfdc2
......@@ -352,7 +352,7 @@ class DOMFocusController<T> implements IDisposable {
const focusedDomElement = this.view.domElement(focus[0]);
const tabIndexElement = focusedDomElement.querySelector('[tabIndex]');
if (!tabIndexElement || !(tabIndexElement instanceof HTMLElement)) {
if (!tabIndexElement || !(tabIndexElement instanceof HTMLElement) || tabIndexElement.style.visibility === 'hidden' || tabIndexElement.style.display === 'none') {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册