Skip to content

Commit 0319eed

Browse files
authored
Fix Modified elsewhere tabIndex bug (microsoft#166918)
The tabIndex for the Modified elsewhere indicator should be refreshed per update rather than only upon creation, in the same way the indicator's display style is.
1 parent db66812 commit 0319eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ export class SettingsTreeIndicatorsLabel implements IDisposable {
140140
private createScopeOverridesIndicator(): SettingIndicator {
141141
// Don't add .setting-indicator class here, because it gets conditionally added later.
142142
const otherOverridesElement = $('span.setting-item-overrides');
143-
otherOverridesElement.tabIndex = 0;
144143
const otherOverridesLabel = new SimpleIconLabel(otherOverridesElement);
145144
return {
146145
element: otherOverridesElement,
@@ -238,6 +237,7 @@ export class SettingsTreeIndicatorsLabel implements IDisposable {
238237
updateScopeOverrides(element: SettingsTreeSettingElement, onDidClickOverrideElement: Emitter<ISettingOverrideClickEvent>, onApplyFilter: Emitter<string>) {
239238
this.scopeOverridesIndicator.element.innerText = '';
240239
this.scopeOverridesIndicator.element.style.display = 'none';
240+
this.scopeOverridesIndicator.element.tabIndex = 0;
241241
if (element.hasPolicyValue) {
242242
// If the setting falls under a policy, then no matter what the user sets, the policy value takes effect.
243243
this.scopeOverridesIndicator.element.style.display = 'inline';

0 commit comments

Comments
 (0)