diff --git a/packages/core/src/browser/widgets/widget.ts b/packages/core/src/browser/widgets/widget.ts index e1af24a6daf5e..612ac2139e9b6 100644 --- a/packages/core/src/browser/widgets/widget.ts +++ b/packages/core/src/browser/widgets/widget.ts @@ -203,7 +203,7 @@ export function addEventListener( ): Disposable { element.addEventListener(type, listener, useCapture); return Disposable.create(() => - element.removeEventListener(type, listener) + element.removeEventListener(type, listener, useCapture) ); }