Skip to content

Commit 8721752

Browse files
authored
Add classlist check (microsoft#153346)
Fixes microsoft#148427
1 parent 7defe64 commit 8721752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,8 @@ export class SettingsEditor2 extends EditorPane {
907907
}));
908908

909909
this._register(this.settingsTree.onDidFocus(() => {
910-
if (document.activeElement?.classList.contains('monaco-list')) {
910+
const classList = document.activeElement?.classList;
911+
if (classList && classList.contains('monaco-list') && classList.contains('settings-editor-tree')) {
911912
this._currentFocusContext = SettingsFocusContext.SettingTree;
912913
this.settingRowFocused.set(true);
913914
}

0 commit comments

Comments
 (0)