Skip to content

Commit

Permalink
Fix #55712 - no need to focus 'a' anymore when restoring control focu…
Browse files Browse the repository at this point in the history
…s after tree render
  • Loading branch information
roblourens committed Aug 3, 2018
1 parent c8e14b5 commit 0c2d71e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ export class SettingsEditor2 extends BaseEditor {

private focusEditControlForRow(id: string, selection?: number): void {
const rowSelector = `.setting-item#${id}`;
const inputElementToFocus: HTMLElement = this.settingsTreeContainer.querySelector(`${rowSelector} input, ${rowSelector} select, ${rowSelector} a, ${rowSelector} .monaco-custom-checkbox`);
const inputElementToFocus: HTMLElement = this.settingsTreeContainer.querySelector(`${rowSelector} input, ${rowSelector} select, ${rowSelector} .monaco-custom-checkbox`);
if (inputElementToFocus) {
inputElementToFocus.focus();
if (typeof selection === 'number') {
Expand Down

0 comments on commit 0c2d71e

Please sign in to comment.