diff --git a/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts b/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts index a9e6c8ec8d12d..0e63185708478 100644 --- a/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts +++ b/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts @@ -290,7 +290,7 @@ export class SettingsTargetsWidget extends Widget { this.targetDetails = DOM.append(targetElement, DOM.$('.settings-target-details')); this.updateLabel(); - this.onclick(parent, e => this.showContextMennu(e)); + this.onclick(this.settingsTargetsContainer, e => this.showContextMennu(e)); DOM.append(this.settingsTargetsContainer, DOM.$('.settings-target-dropdown-icon.octicon.octicon-triangle-down'));