Skip to content

Commit 26092a4

Browse files
committed
Fix parent element of term quick pick popup
Fixes microsoft#195704
1 parent 2ca5d53 commit 26092a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFixAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
292292
updateLayout(this._configurationService, e);
293293
this._audioCueService.playAudioCue(AudioCue.terminalQuickFix);
294294

295-
const parentElement = e.closest('.xterm') as HTMLElement;
295+
const parentElement = (e.closest('.xterm') as HTMLElement).parentElement;
296296
if (!parentElement) {
297297
return;
298298
}

0 commit comments

Comments
 (0)