Skip to content

Commit 2d48d41

Browse files
author
Justin Chen
committed
fix on disposable blocking div
1 parent 05b8f73 commit 2d48d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/codeAction/browser/codeActionMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
217217
this.block.style.zIndex = '-1';
218218

219219
// TODO@Steven: this is never getting disposed
220-
dom.addDisposableListener(this.block, dom.EventType.MOUSE_DOWN, e => e.stopPropagation());
220+
renderDisposables.add(dom.addDisposableListener(this.block, dom.EventType.MOUSE_DOWN, e => e.stopPropagation()));
221221

222222
renderMenu.id = 'codeActionMenuWidget';
223223
renderMenu.classList.add('codeActionMenuWidget');

0 commit comments

Comments
 (0)